Try alternative jest transform
This commit is contained in:
1 parent
4386b5c960
commit
9449ae4314
6 files changed
+30
-198
No files matched your search
+22
-21
@@ -1,27 +1,28 @@
|
||||
const aliases = require('./aliases.config');
|
||||
const path = require('path');
|
||||
const aliases = require("./aliases.config");
|
||||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
// https://babeljs.io/docs/en/options#babelrcroots
|
||||
presets: [
|
||||
[
|
||||
'@babel/preset-env',
|
||||
"@babel/preset-env",
|
||||
{
|
||||
targets: {
|
||||
ie: '11',
|
||||
},
|
||||
},
|
||||
ie: "11"
|
||||
}
|
||||
}
|
||||
],
|
||||
'@babel/preset-react',
|
||||
"@babel/preset-react"
|
||||
],
|
||||
babelrcRoots: ["./platform/*", "./extensions/*"],
|
||||
plugins: [
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
'@babel/plugin-proposal-object-rest-spread',
|
||||
'@babel/plugin-syntax-dynamic-import',
|
||||
'@babel/plugin-transform-regenerator',
|
||||
'@babel/plugin-transform-runtime',
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
"@babel/plugin-proposal-object-rest-spread",
|
||||
"@babel/plugin-syntax-dynamic-import",
|
||||
"@babel/plugin-transform-regenerator",
|
||||
"@babel/plugin-transform-runtime",
|
||||
[
|
||||
'module-resolver',
|
||||
"module-resolver",
|
||||
{
|
||||
// https://github.com/tleunen/babel-plugin-module-resolver/issues/338
|
||||
// There seem to be a bug with module-resolver with a mono-repo setup:
|
||||
@@ -31,18 +32,18 @@ module.exports = {
|
||||
// This will return undefined if aliases has no key for the sourcePath,
|
||||
// in which case module-resolver will fallback on its default behaviour.
|
||||
return aliases[sourcePath];
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
env: {
|
||||
debug: {
|
||||
sourceMaps: 'inline',
|
||||
retainLines: true,
|
||||
sourceMaps: "inline",
|
||||
retainLines: true
|
||||
},
|
||||
build: {
|
||||
ignore: ['**/*.test.jsx', '**/*.test.js', '__snapshots__', '__tests__'],
|
||||
},
|
||||
ignore: ["**/*.test.jsx", "**/*.test.js", "__snapshots__", "__tests__"]
|
||||
}
|
||||
},
|
||||
ignore: ['node_modules'],
|
||||
ignore: ["node_modules"]
|
||||
};
|
||||
Reference in new issue
Block a user