Commits
Click on a commit to change the comparison rangefix: check if module is ES module before using import.meta.url
The script must be an ES module to use import.meta.url. We cannot use supports_document() to determine this. This change adds a check for parser.is_esm before handling import.meta.url in both evaluate_identifier and member methods. fix(javascript): preserve import.meta.url in destructuring for web targets
When destructuring import.meta in ES modules targeting web environments,
preserve import.meta.url using a getter function instead of replacing
it with a file:// URL. This ensures the browser can resolve it to the
actual script URL at runtime. fix(test): update import-meta-url-web test to work with ES module output
- Add export statement to make test file an ES module
- Configure rspack to output ES module format (outputModule, module, chunkFormat)
- Update test expectations to verify import.meta.url is preserved
- Add test.config.js for moduleScope configuration