You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parcel will build or serve the project without error.
😯 Current Behavior
One of two options:
Don't pass process.env to the env worker options. This is the default already per the Node documentation. When omitted, it prevents the Node Worker::Worker constructor from parsing the NODE_OPTIONS environment again allowing the worker to run.
Filter out NODE_OPTIONS since not all per-process options are valid for V8 isolate creation used for thread workers. This isn't really the best course since the prior option will more transparently propagate the environment to the worker.
🔦 Context
On development workstation, we trust an in-house certificate authority/CA on local web server containers to ensure HTTPS works as expected. Node will not connect to those servers without the OpenSSL CA trust, where this CA is trusted, being used. To enable this, we use the .npmrc file to set NODE_OPTIONS to --use-openssl-ca.
This bug would prevent anyone using Parcel when the OpenSSL CA trust is enabled via NODE_OPTIONS with the --use-openssl-ca.
🐛 bug report
Can't run Parcel commands when
NODE_OPTIONS
is set to--use-openssl-ca
.🎛 Configuration (.babelrc, package.json, cli command)
${PROJECT_DIR}/package.json
~/.npmrc
node-options=--use-openssl-ca
🤔 Expected Behavior
Parcel will build or serve the project without error.
😯 Current Behavior
One of two options:
process.env
to theenv
worker options. This is the default already per the Node documentation. When omitted, it prevents the NodeWorker::Worker
constructor from parsing theNODE_OPTIONS
environment again allowing the worker to run.NODE_OPTIONS
since not all per-process options are valid for V8 isolate creation used for thread workers. This isn't really the best course since the prior option will more transparently propagate the environment to the worker.🔦 Context
On development workstation, we trust an in-house certificate authority/CA on local web server containers to ensure HTTPS works as expected. Node will not connect to those servers without the OpenSSL CA trust, where this CA is trusted, being used. To enable this, we use the
.npmrc
file to setNODE_OPTIONS
to--use-openssl-ca
.This bug would prevent anyone using Parcel when the OpenSSL CA trust is enabled via
NODE_OPTIONS
with the--use-openssl-ca
.💻 Code Sample
6XGate/bugs-parcel-with-openssl-failure
npm install
npm run build
node test.js
npm run testjs
🌍 Your Environment
The text was updated successfully, but these errors were encountered: