web-infra-dev / rspack

The fast Rust-based web bundler with webpack-compatible API 🦀️
https://rspack.dev
MIT License
10.04k stars 573 forks source link

fix(modern-module): remove extra import statement for star reexport #8457

Closed fi3ework closed 4 days ago

fi3ework commented 4 days ago

Summary

Fix https://github.com/web-infra-dev/rslib/issues/429.

Previously given a module like this:

export * from "external1"

the diff of the output after this PR will be

- import * as __WEBPACK_EXTERNAL_MODULE_external1__ from "external1";
export * from "external1"

Checklist

netlify[bot] commented 4 days ago

Deploy Preview for rspack canceled.

Name Link
Latest commit afe52f76728d3e4d1dcd62ed2211fafa9c20e8a1
Latest deploy log https://app.netlify.com/sites/rspack/deploys/673af46dc6a49e0008eb03dc