Skip to content

Commit

Permalink
chore: make babel and jest working after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
langpavel committed Jun 19, 2018
1 parent 4b64195 commit dd5b8a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .babelrc.js → babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
},
},
],
'@babel/preset-stage-2',
['@babel/preset-stage-2', { decoratorsLegacy: true }],
'@babel/preset-flow',
'@babel/preset-react',
],
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ module.exports = {
// timers: // [string]

transform: {
'\\.(js|jsx)$': '<rootDir>/node_modules/babel-jest',
'\\.(js|jsx|mjs)$': '<rootDir>/node_modules/babel-jest',
'^(?!.*\\.(js|jsx|json|css|less|styl|scss|sass|sss)$)':
'<rootDir>/tools/lib/fileTransformer.js',
},
Expand Down
4 changes: 2 additions & 2 deletions tools/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,16 @@ const config = {
{
targets: {
browsers: pkg.browserslist,
forceAllTransforms: !isDebug, // for UglifyJS
},
forceAllTransforms: !isDebug, // for UglifyJS
modules: false,
useBuiltIns: false,
debug: false,
},
],
// Experimental ECMAScript proposals
// https://babeljs.io/docs/plugins/#presets-stage-x-experimental-presets-
'@babel/preset-stage-2',
['@babel/preset-stage-2', { decoratorsLegacy: true }],
// Flow
// https://github.com/babel/babel/tree/master/packages/babel-preset-flow
'@babel/preset-flow',
Expand Down

0 comments on commit dd5b8a7

Please sign in to comment.