|
|
@ -20,12 +20,13 @@ const inputOptions = {
|
|
|
|
exclude: 'node_modules/**', // 只编译我们的源代码
|
|
|
|
exclude: 'node_modules/**', // 只编译我们的源代码
|
|
|
|
presets: [[
|
|
|
|
presets: [[
|
|
|
|
'@babel/preset-env', {
|
|
|
|
'@babel/preset-env', {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Do not transpile typeof helper with itself
|
|
|
|
* Do not transpile typeof helper with itself
|
|
|
|
* https://github.com/babel/babel/pull/10788/files
|
|
|
|
* https://github.com/babel/babel/pull/10788/files
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
'exclude': ['@babel/plugin-transform-typeof-symbol']
|
|
|
|
exclude: ['@babel/plugin-transform-typeof-symbol'],
|
|
|
|
}]],
|
|
|
|
},
|
|
|
|
|
|
|
|
]],
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
};
|
|
|
|
};
|
|
|
|