Skip to content

Commit 640504a

Browse files
committed
fix: 修复 esm 包没有走 babel 转码的问题
1 parent 77c6166 commit 640504a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rollup.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ export default [
3535
},
3636
{
3737
input,
38-
plugins,
38+
plugins: [
39+
...plugins,
40+
getBabelOutputPlugin({ presets: [['@babel/env']], allowAllFormats: true, }),
41+
],
3942
output: {
4043
format: 'es',
4144
file: 'lib/remoteAsync.esm.js',

0 commit comments

Comments
 (0)