-
Notifications
You must be signed in to change notification settings - Fork 7
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
Bundle of modules requiring JSON files fails #13
Comments
@parroit Added support for JSON and published to npm. |
Thank you. Unfortunately node-ent is not usable by pure-cjs, because it depends on punycode built-in module, but this is out of scope for pure-cjs. |
@parroit Can't you install this package so pure-cjs could find it? https://www.npmjs.org/package/punycode |
Yesterday, I did following step to circumvent the problem I found:
Anyway, I'll try to reintroduce node-ent using new pcjs new version, to see if step 2) now work as expected. Did you already publish the new version to NPM? |
What I love of pcjs is that it force me to discover less dependent modules such as he, which produce smaller packages |
I confirm that npm modules with name equal to node predefined ones get not bundled. I tried with node-url Meanwhile, I updated gulp module on npm to use last pcjs version |
@parroit Please submit this as separate issue. |
I'm trying to make a bundle that use node-ent, which, in turn, require some json files.
It appear pure-cjs doesn't treat them differently from js files, and when it pass content to esprima for parsing, esprima complains.
The text was updated successfully, but these errors were encountered: