Skip to content

Commit

Permalink
feat: use "module-import" in ESM (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework authored Aug 8, 2024
1 parent 109a00a commit 12066db
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 54 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ The project is still in its early stages and under active development, so it pos

| Package | Link |
| ------------ | ------------------------------------------------------- |
| @rspack/core | [PR](https://github.com/web-infra-dev/rspack/pull/7394) |
| @rspack/core | [PR](https://github.com/web-infra-dev/rspack/pull/7493) |
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"pnpm": {
"overrides": {
"@rspack/core": "npm:@rspack/[email protected]338cfbe-20240731183605"
"@rspack/core": "npm:@rspack/[email protected]af0452f-20240808052639"
}
}
}
2 changes: 1 addition & 1 deletion packages/core/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const composeFormatConfig = (format: Format): RsbuildConfig => {
return {
tools: {
rspack: {
externalsType: 'module',
externalsType: 'module-import',
output: {
module: true,
chunkFormat: 'module',
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config 1
"experiments": {
"outputModule": true,
},
"externalsType": "module",
"externalsType": "module-import",
"optimization": {
"concatenateModules": true,
},
Expand Down
100 changes: 50 additions & 50 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 12066db

Please sign in to comment.