Unverified Commit 4c27a1a5 authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

fix(next-rspack): scope export handling to rspack

Co-authored-by: 's avatarTobias Koppers <1365881+sokra@users.noreply.github.com>
parent ff8e02d1
......@@ -2313,6 +2313,9 @@ export default async function getBaseWebpackConfig(
webpack5Config.module!.parser = {
javascript: {
url: 'relative',
// Rspack defaults missing imported exports to errors, unlike webpack.
// Preserve compatibility for imports removed by tree shaking.
...(isRspack ? { importExportsPresence: 'warn' } : undefined),
},
}
webpack5Config.module!.generator = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment