chore: adjust webpack output (#11573)

- automatically split i18n resources into i18n-langs.{lang} naming
- force worker resources to be bundled in one file
This commit is contained in:
forehalo
2025-04-10 01:48:28 +00:00
parent 1bd31b67cd
commit cdbcb8a42a
3 changed files with 37 additions and 23 deletions
+4 -1
View File
@@ -414,7 +414,7 @@ export function createWorkerTargetConfig(
return {
name: entry,
context: pkg.path.value,
context: ProjectRoot.value,
experiments: {
topLevelAwait: true,
outputModule: false,
@@ -541,6 +541,9 @@ export function createWorkerTargetConfig(
{} as Record<string, string>
)
),
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
process.env.SENTRY_AUTH_TOKEN &&
process.env.SENTRY_ORG &&
process.env.SENTRY_PROJECT &&