Skip to content

Commit

Permalink
fix: correct field
Browse files Browse the repository at this point in the history
  • Loading branch information
2heal1 committed Dec 26, 2024
1 parent d0074b0 commit cd5269c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rsbuild-plugin/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const pluginModuleFederation = (
}

if (!bundlerConfig.output?.chunkLoadingGlobal) {
bundlerConfig.output!.chunkLoadingGlobal = 'jsonp';
bundlerConfig.output!.chunkLoading = 'jsonp';
}

// `uniqueName` is required for react refresh to work
Expand Down Expand Up @@ -177,7 +177,7 @@ export const pluginModuleFederation = (
}
});

api.modifyEnvironmentConfig((config, { mergeEnvironmentConfig }) => {
api.modifyEnvironmentConfig((config) => {
// Module Federation runtime uses ES6+ syntax,
// adding to include and let SWC transform it
config.source.include = [
Expand Down

0 comments on commit cd5269c

Please sign in to comment.