Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running experimental features? #98

Closed
ekeuus opened this issue Apr 17, 2019 · 1 comment
Closed

Running experimental features? #98

ekeuus opened this issue Apr 17, 2019 · 1 comment

Comments

@ekeuus
Copy link

ekeuus commented Apr 17, 2019

I would like to pass "--experimental-worker" to the internal node instance to enable worker_threads.

What are the options to do so? I tried adding the flag to allowed params, but it still fails at:

server-node_1 | Error: Cannot find module 'worker_threads' server-node_1 | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) server-node_1 | at Function.Module._load (internal/modules/cjs/loader.js:508:25) server-node_1 | at Module.require (internal/modules/cjs/loader.js:637:17) server-node_1 | at require (internal/modules/cjs/helpers.js:22:18) server-node_1 | at Object.<anonymous> (/var/www/node_modules/microjob/dist/worker-pool.js:7:26) server-node_1 | at Module._compile (internal/modules/cjs/loader.js:701:30) server-node_1 | at Module._extensions..js (internal/modules/cjs/loader.js:712:10) server-node_1 | at Object.require.extensions.(anonymous function) [as .js] (/var/www/node_modules/babel-watch/runner.js:64:7)

@IlyaSemenov
Copy link

You can use NODE_OPTIONS to pass arbitrary node.js options, for instance:

NODE_OPTIONS="--experimental-worker" babel-watch server.js

@STRML STRML closed this as completed in d56971c Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants