feat: keep unknown import.meta properties#12796
Conversation
✅ Deploy Preview for rspack canceled.Built without sensitive environment variables
|
|
Hit compile and a lot of changes in wasi related files. Are these expected ? |
@CPunisher cc |
|
This is a bug of napi cli, which sometimes cannot generate exports well. Just revert the |
Merging this PR will not alter performance
Comparing Footnotes
|
435bd3e to
9093e21
Compare
chenjiahan
left a comment
There was a problem hiding this comment.
Thank you! Could you update the documentation too?
https://rspack.rs/config/module#moduleparserjavascriptimportmeta
|
I will update the document |
cfbef9d to
817bcc8
Compare
6a5fa75 to
99b03a3
Compare
99b03a3 to
1950541
Compare
crates/rspack_plugin_javascript/src/visitors/dependency/parser/mod.rs
Outdated
Show resolved
Hide resolved
crates/rspack_plugin_javascript/src/visitors/dependency/parser/mod.rs
Outdated
Show resolved
Hide resolved
9e4434a to
49c615f
Compare
� Conflicts: � crates/rspack_plugin_javascript/src/parser_plugin/import_meta_plugin.rs � crates/rspack_plugin_javascript/src/visitors/dependency/parser/mod.rs
49c615f to
874a1f4
Compare
Co-authored-by: neverland <jait.chen@foxmail.com>
Summary
Unknown import.meta properties are now determined at runtime instead of being statically analyzed at compile time.
Related links
webpack/webpack#20312
Checklist