-
-
Notifications
You must be signed in to change notification settings - Fork 632
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
fix: commonjs static library mode #9390
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for rspack ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
CodSpeed Performance ReportMerging #9390 will not alter performanceComparing Summary
|
@ahabhgk Could you help review it? Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this test to packages/rspack-test-tools/tests/configCases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, webpack/webpack#19242 is trying to add some test into webpack. We could wait for a while to let it merged into webpack first. Or we could move it to rspack test if there's no response for a while.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think both are fine, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see if it's merged tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test case for commonjs-static
is supposed to be uncommented here.
rspack/tests/webpack-test/configCases/library/1-use-library/webpack.config.js
Lines 317 to 334 in 80d8625
// TODO: amd esm import exports presence check | |
// { | |
// resolve: { | |
// alias: { | |
// library: path.resolve( | |
// testPath, | |
// "../0-create-library/commonjs-static-external.js" | |
// ), | |
// external: path.resolve(__dirname, "node_modules/external.js") | |
// } | |
// }, | |
// plugins: [ | |
// new webpack.DefinePlugin({ | |
// NAME: JSON.stringify("commonjs-static with external"), | |
// TEST_EXTERNAL: true | |
// }) | |
// ] | |
// }, |
Ok. I will uncomment it. |
Summary
Fixes web-infra-dev/rslib#714 (comment)
Checklist