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

generated package.json should have type:module for --target web #1430

Open
hansSchall opened this issue Sep 4, 2024 · 0 comments
Open

generated package.json should have type:module for --target web #1430

hansSchall opened this issue Sep 4, 2024 · 0 comments

Comments

@hansSchall
Copy link

pkg/package.json should set the type field to module for web target, otherwise Node.js complains about this:

(node:32548) [MODULE_TYPELESS_PACKAGE_JSON] Warning: file:///D:/.../pkg/src.js parsed as an ES module because module syntax was detected; to avoid the performance penalty of syntax detection, add "type": "module" to D:\...\pkg\package.json

Yes, I used the web target for Node.js... (It was a quick test)

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

1 participant