-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
[Bug]: modern-module library compilation mode not exported properly #8546
Comments
If |
The reason of the verbose output is due to lacking the following configurations: experiments: {
outputModule: true,
+ rspackFuture: {
+ bundlerInfo: {
+ force: false,
+ },
+ },
},
optimization: {
minimize: false,
+ concatenateModules: true,
},
|
I use |
The content output here has lost its export. |
Could you provide the error so we can fix it?
No. |
A reproduce repository please? It is hard to reproduce via a screenshot. |
I updated code. |
Same as web-infra-dev/rslib#316. Workaround for now it's to use two splitted build process. |
Specify different |
Is there a plan to solve it in the future? |
It should be resolved, but the time is not promised. |
I'll try using |
I have solved the above problem using |
|
It's because of the https://github.com/dp-os/gez/blob/78da1962deea63a7e4efdf91873448984aea8e4e/packages/rspack/src/config.ts#L94-L96 break the concatenation premise of |
I plan to use Rspack to build a pure ESM application, but it seems like I can't keep going now. |
I have tested many and the |
Provided new examples #8557 |
System Info
System:
OS: macOS 15.0.1
CPU: (8) arm64 Apple M1
Memory: 125.64 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.9.0 - ~/.nvm/versions/node/v22.9.0/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v22.9.0/bin/yarn
npm: 10.8.3 - ~/.nvm/versions/node/v22.9.0/bin/npm
pnpm: 9.13.2 - ~/.nvm/versions/node/v22.9.0/bin/pnpm
bun: 1.1.27 - ~/.bun/bin/bun
Browsers:
Safari: 18.0.1
npmPackages:
@rspack/cli: 1.1.4 => 1.1.4
@rspack/core: 1.1.4 => 1.1.4
Details
Source code
Compile code
Reproduce link
https://github.com/lzxb/rspack-externals-error
Reproduce Steps
pnpm i
pnpm build
The text was updated successfully, but these errors were encountered: