30 lines
479 B
JavaScript
30 lines
479 B
JavaScript
|
|
const exclude = [
|
||
|
|
'@babel/plugin-transform-async-to-generator',
|
||
|
|
'@babel/plugin-transform-regenerator',
|
||
|
|
'@babel/plugin-transform-typeof-symbol',
|
||
|
|
];
|
||
|
|
|
||
|
|
module.exports = {
|
||
|
|
presets: [
|
||
|
|
[
|
||
|
|
'@babel/preset-env', {
|
||
|
|
loose: true,
|
||
|
|
modules: false,
|
||
|
|
exclude,
|
||
|
|
},
|
||
|
|
],
|
||
|
|
],
|
||
|
|
env: {
|
||
|
|
test: {
|
||
|
|
presets: [
|
||
|
|
[
|
||
|
|
'@babel/preset-env', {
|
||
|
|
loose: true,
|
||
|
|
exclude,
|
||
|
|
},
|
||
|
|
],
|
||
|
|
],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
};
|