-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Experimental module output drops external import assertions #16238
Comments
This issue had no activity for at least three months. It's subject to automatic issue closing if there is no activity in the next 15 days. |
bump |
Same issue |
Issue was closed because of inactivity. If you think this is still a valid issue, please file a new issue with additional information. |
Marked as low because it is still on |
@alexander-akait should this be reopened? |
Bug report
What is the current behavior?
When using the experimental module output format import assertions are not emitted in the output.
This is related to #2933, @alexander-akait requested I open a new issue.
If the current behavior is a bug, please provide the steps to reproduce.
main.js
package.json
webpack.config.js
At the top of
dist/main.mjs
we getimport * as __WEBPACK_EXTERNAL_MODULE_test__ from "test";
which will make applications fail under runtimes which expect the assertion (nodejs v18).What is the expected behavior?
The assertion should be preserved in the output.
Other relevant information:
webpack version: 5.74.0
Node.js version: 18.9.0
The text was updated successfully, but these errors were encountered: