Skip to main content
This topic has been closed for replies.

2 replies

lesavage
Community Manager
Community Manager
February 2, 2015

Hi Alexander,

JavaScript Modules

All third-party node JavaScript modules are supported. The root search path of third-party modules is the directory which contains your html file. For example, when you do require in file:///your_extension/index.html, CEP will lookup modules under file:///your_extension/node_modules, this rule is exactly the same with upstream node.

Native Modules

Node.js native modules are not directly supported since CEP is using a different V8 version from the official node.

Kind regards,

Lea

AlexanderSh
Participant
February 2, 2015

> Node.js native modules are not directly supported


Thanks for the reply. Does this mean that Node.js native modules may still be supported indirectly? Otherwise, how should the said example work?

Community Expert
September 16, 2023

One indirect is to use wasm instead of the node library. For example I wanted to use sqlite but instead ended up using sqlite wasm and hosted it in an invisible extension.

-Manan

-Manan