Add modules: false for test transforms
This commit is contained in:
parent
fd3bf4f542
commit
2a5372166e
1 changed files with 3 additions and 1 deletions
|
|
@ -1,7 +1,9 @@
|
||||||
module.exports = api => {
|
module.exports = api => {
|
||||||
const isTest = api.env('test');
|
const isTest = api.env('test');
|
||||||
const preset = ["@babel/preset-env"];
|
const preset = ["@babel/preset-env"];
|
||||||
const testPreset = ["@babel/preset-env", {targets: {node: 'current'}}];
|
const testPreset = [
|
||||||
|
"@babel/preset-env", {targets: {node: 'current'}, modules: false}
|
||||||
|
];
|
||||||
|
|
||||||
const plugins = [
|
const plugins = [
|
||||||
"@babel/plugin-syntax-dynamic-import",
|
"@babel/plugin-syntax-dynamic-import",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue