Skip to content

Commit 12066db

Browse files
authored
feat: use "module-import" in ESM (#73)
1 parent 109a00a commit 12066db

File tree

5 files changed

+54
-54
lines changed

5 files changed

+54
-54
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ The project is still in its early stages and under active development, so it pos
123123

124124
| Package | Link |
125125
| ------------ | ------------------------------------------------------- |
126-
| @rspack/core | [PR](https://github.com/web-infra-dev/rspack/pull/7394) |
126+
| @rspack/core | [PR](https://github.com/web-infra-dev/rspack/pull/7493) |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"pnpm": {
5353
"overrides": {
54-
"@rspack/core": "npm:@rspack/[email protected]338cfbe-20240731183605"
54+
"@rspack/core": "npm:@rspack/[email protected]af0452f-20240808052639"
5555
}
5656
}
5757
}

packages/core/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const composeFormatConfig = (format: Format): RsbuildConfig => {
114114
return {
115115
tools: {
116116
rspack: {
117-
externalsType: 'module',
117+
externalsType: 'module-import',
118118
output: {
119119
module: true,
120120
chunkFormat: 'module',

packages/core/tests/__snapshots__/config.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config 1
4141
"experiments": {
4242
"outputModule": true,
4343
},
44-
"externalsType": "module",
44+
"externalsType": "module-import",
4545
"optimization": {
4646
"concatenateModules": true,
4747
},

pnpm-lock.yaml

Lines changed: 50 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)