Skip to content

Commit 98ff409

Browse files
committed
chore(build): use advanced ESM
1 parent 6257169 commit 98ff409

File tree

7 files changed

+130
-441
lines changed

7 files changed

+130
-441
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"picocolors": "1.1.1",
5959
"prebundle": "1.5.0",
6060
"rsbuild-plugin-publint": "^0.3.3",
61-
"rslib": "npm:@rslib/[email protected].0",
61+
"rslib": "npm:@rslib/[email protected].1",
6262
"rslog": "^1.3.0",
6363
"tinyglobby": "0.2.14",
6464
"tsconfck": "3.1.6",

packages/core/rslib.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export default defineConfig({
3030
{
3131
format: 'esm',
3232
syntax: ['node 18.12.0'],
33+
experiments: {
34+
advancedEsm: true,
35+
},
3336
dts: {
3437
bundle: false,
3538
// Only use tsgo in local dev for faster build, disable it in CI until it's more stable

packages/create-rslib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@types/node": "^24.10.0",
3838
"fs-extra": "^11.3.2",
3939
"rsbuild-plugin-publint": "^0.3.3",
40-
"rslib": "npm:@rslib/[email protected].0",
40+
"rslib": "npm:@rslib/[email protected].1",
4141
"tsx": "^4.20.6",
4242
"typescript": "^5.9.3"
4343
},

packages/create-rslib/rslib.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ export default defineConfig({
88
{
99
format: 'esm',
1010
syntax: ['node 18.12.0'],
11+
experiments: {
12+
advancedEsm: true,
13+
},
1114
},
1215
],
1316
plugins: [

packages/plugin-dts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"picocolors": "1.1.1",
4444
"prebundle": "1.5.0",
4545
"rsbuild-plugin-publint": "^0.3.3",
46-
"rslib": "npm:@rslib/[email protected].0",
46+
"rslib": "npm:@rslib/[email protected].1",
4747
"tinyglobby": "0.2.14",
4848
"tsconfig-paths": "^4.2.0",
4949
"typescript": "^5.9.3"

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ onlyBuiltDependencies:
1818

1919
overrides:
2020
'zx>@types/node': '-'
21+
'@rspack/core': 'npm:@rspack-canary/[email protected]'
2122

2223
strictPeerDependencies: false
2324
autoInstallPeers: false

0 commit comments

Comments
 (0)