-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
node:path is not bundled for the browser when outputFormat is esmodule or global #8409
Comments
If the output format is |
It's due to parcel/packages/utils/node-resolver-core/src/NodeResolver.js Lines 721 to 727 in cbc84b0
This setting is not meant to work with the |
But I want to make a library for the browser users. If I remove
I have switched to esmodule, but node:path is not still bundled. That's why my Deno integration test fails. https://github.com/aminya/patha/runs/7936632445?check_suite_focus=true#step:8:41 |
It is not fixed yet. |
Face similar issue while bundling a project depending on It seems that parcel doesn't include the packages to the output file which are not just under the folder |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
🐛 bug report
I am using
is-path-inside
in my package that usesnode:path
. But when I try to bundle it for the browser it fails with this error:🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
global
should bundlenode:path
similar toesmodule
orcommonjs
😯 Current Behavior
💁 Possible Solution
🔦 Context
Might be related to #8049
💻 Code Sample
aminya/patha#5
🌍 Your Environment
The text was updated successfully, but these errors were encountered: