Skip to content

Commit ae010ef

Browse files
committed
Convert babel config to JS for Jest to pick up
1 parent 044720b commit ae010ef

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

.babelrc renamed to babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
module.exports = {
22
"sourceMaps": true,
33
"presets": [
44
["@babel/preset-env", {
@@ -22,4 +22,4 @@
2222
"@babel/plugin-syntax-dynamic-import",
2323
"@babel/plugin-transform-runtime"
2424
]
25-
}
25+
};

webpack.config.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,6 @@ module.exports = (env, argv) => ({
9494
loader: 'babel-loader',
9595
options: {
9696
cacheDirectory: true,
97-
98-
// These two options are needed to load the babelrc file and
99-
// apply it to node_modules (ie: react-sdk and js-sdk). We
100-
// could put the babel config in this block instead, but we
101-
// publish riot-web to npm for some reason and that seems to
102-
// ship a lib directory. Therefore, we need the babel config
103-
// in a place where babel and babel-loader can reach it.
104-
babelrc: true,
105-
configFile: path.resolve(__dirname, ".babelrc"),
10697
}
10798
},
10899
{

0 commit comments

Comments
 (0)