[Question]: Bundle a generic library with workers for NodeJS and Electron #13788
Unanswered
isasmendiagus
asked this question in
Q&A
Replies: 1 comment
-
|
Please ask this in electron repo, you set https://github.com/isasmendiagus/scanoss-scannerJS/blob/main/webpack.config.js#L9, so
electron thinking it is commonjs format, try change Please use https://github.com/webpack/webpack/discussions for questions in future |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context:
We have a central JS-based library that uses workers. We are trying to bundle the library with WebPack and use it among differents environments (NodeJS, Electron and also will be used to develop a plugin for VS Code).
Problem:
The bundle is working in NodeJS so far so good. But when we try to import it into an electron application (Electron-react-boilerplate), we have some problems with the worker path and the import module system.
Steps to reproduce the scenario.
Questions:
Other relevant information:
webpack version: webpack version: 5.44.0
Node.js version: v14.17.0
Operating System: Ubuntu LTS 20.04
Additional tools: Yarn
Beta Was this translation helpful? Give feedback.
All reactions