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
process !== globalThis.process when package.json has { "alias": { "process": false } }.
I tried updating package.json#alias.process to resolve to a few different file types: module.export = undefined, export default = undefined,
馃 Expected Behavior
process should resolve the same value as globalThis.process. It should be possible to make typeof process !== 'undefined return false.
馃槸 Current Behavior
Some dependencies, like the Monaco editor, use typeof process !== 'undefined' to check if they're running in node. Setting { "alias": { "process": false } } causes globalThis.process to be false, but process to be an empty object ({}). That's to say, globalThis.process is not the same as process.
馃敠 Context
This has caused problems integrating with the Monaco editor.
The text was updated successfully, but these errors were encountered:
- Patch monaco-editor in order to get esm-parcel sample working
- Aside: Looks like CI didn't catch this?
- Fix both `0.45.0` and `0.46.0` monaco-editor versions resolve in the
repo
- Bumped parcel version
- Replaces `~0.46.0` monaco-editor versions with `^0.46.0` for
consistency, and so we don't need 2 lines in packages.json#resolutions
This seems like more of a Parcel issue than a monaco-editor one, so I've
opened an issue on them:
parcel-bundler/parcel#9549
馃悰 bug report
process !== globalThis.process
when package.json has{ "alias": { "process": false } }
.I tried updating package.json#alias.process to resolve to a few different file types:
module.export = undefined
,export default = undefined
,馃 Expected Behavior
process
should resolve the same value asglobalThis.process
. It should be possible to maketypeof process !== 'undefined
return false.馃槸 Current Behavior
Some dependencies, like the Monaco editor, use
typeof process !== 'undefined'
to check if they're running in node. Setting{ "alias": { "process": false } }
causesglobalThis.process
to be false, butprocess
to be an empty object ({}
). That's to say,globalThis.process
is not the same asprocess
.馃敠 Context
This has caused problems integrating with the Monaco editor.
The text was updated successfully, but these errors were encountered: