Skip to content

Commit 69a9aa3

Browse files
chore(rsbuild-plugin): use rslib auto external
1 parent 0ccbc07 commit 69a9aa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/rsbuild-plugin/rslib.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default defineConfig({
66
format: 'esm',
77
syntax: 'es2021',
88
bundle: true,
9+
autoExternal: true,
910
dts: {
1011
distPath: './dist',
1112
},
@@ -14,6 +15,7 @@ export default defineConfig({
1415
format: 'cjs',
1516
syntax: 'es2021',
1617
bundle: true,
18+
autoExternal: true,
1719
dts: false,
1820
},
1921
],
@@ -30,7 +32,6 @@ export default defineConfig({
3032
distPath: {
3133
root: './dist',
3234
},
33-
externals: [/@module-federation\//, 'pnpapi'],
3435
copy: [
3536
{
3637
from: './LICENSE',

0 commit comments

Comments
 (0)