-
Notifications
You must be signed in to change notification settings - Fork 471
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: add sourcemap file to chunk.auxiliaryFiles #6125
Conversation
✅ Deploy Preview for rspack canceled.Built without sensitive environment variables
|
Please create a unit test within the directory |
!bench |
📝 Benchmark detail: Open
|
I ran the performance test and it looks like there are no issues. Then solve the other TODOs and we can be merged. |
@hulin32 The document is outdated. Please execute the |
@SyMind Hey, sorry for bother you, just for local test right now, I am putting below test codes in it("should add source map file to auxiliaryFiles", async () => {
const stats = await new Promise((resolve, reject) => {
const compiler = webpack({
entry: {
main: path.resolve(__dirname, 'cases/chunks/auxiliary-files/one.js')
},
devtool: 'source-map',
});
try {
compiler.run((bailedError, stats) => {
if (bailedError) {
return reject(bailedError);
}
compiler.close(closeError => {
if (closeError) {
return reject(closeError);
}
resolve(stats);
});
});
} catch (err) {
// capture sync thrown errors
reject(err);
}
});
console.log("statssss", stats.toJson({ errorDetails: false }));
}); |
@hulin32 It's possible that |
This is our current issue. Contributing a test case is quite difficult, so I will add the relevant unit tests. |
@SyMind awesome 👍, thanks for your help, also learn something here |
Summary
fix: add sourcemap file to chunk.auxiliaryFiles (#3253), follow up for #5490
Test Plan
I created a demo to test it
https://github.com/hulin32/rspack-for-react-test-verification
Require Documentation?