We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
System:
Binaries:
Browsers:
npmPackages:
runtime error when use some esm libs which have some import.meta syntax, like zustand
import.meta
https://github.com/9aoy/rspack-issue-reproduce/tree/main/import-esm
The text was updated successfully, but these errors were encountered:
Related webpack/webpack#15833, it should get more feedback from webpack community.
Here is wrokaround for this.
// rspack.config.js { builtins: { define: { 'import.meta.env && import.meta.env.MODE': "'development'" } }, }
Sorry, something went wrong.
it seems webpack already supports import.meta.env.MODE
ImportMetaPlugin
underfin
Successfully merging a pull request may close this issue.
System Info
System:
Binaries:
Browsers:
npmPackages:
Details
runtime error when use some esm libs which have some
import.meta
syntax, like zustandReproduce link
https://github.com/9aoy/rspack-issue-reproduce/tree/main/import-esm
Reproduce Steps
The text was updated successfully, but these errors were encountered: