Skip to content

Commit 4fe1c3b

Browse files
wylieconlonoutoftime
authored andcommitted
Run all node_modules through babel (#1674)
* Run all node_modules through babel * Fix lint error in webpack.config.js * Respond to review feedback
1 parent a993fce commit 4fe1c3b

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

babel.config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,5 @@ module.exports = (api) => {
2929
],
3030
plugins,
3131
compact: false,
32-
overrides: [
33-
{
34-
include: './node_modules/parse5-sax-parser/lib/index.js',
35-
},
36-
],
3732
};
3833
};

webpack.config.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -252,18 +252,7 @@ module.exports = (env = process.env.NODE_ENV || 'development') => {
252252
},
253253
{
254254
test: /\.js$/u,
255-
include: [
256-
matchModule('ansi-styles'),
257-
matchModule('ast-types'),
258-
matchModule('chalk'),
259-
matchModule('lodash-es'),
260-
matchModule('parse5'),
261-
matchModule('parse5-sax-parser'),
262-
matchModule('postcss-html'),
263-
matchModule('recast'),
264-
matchModule('redux'),
265-
matchModule('stylelint'),
266-
],
255+
include: [path.resolve(__dirname, 'node_modules')],
267256
use: {loader: 'babel-loader', options: babelLoaderConfig},
268257
},
269258
{

0 commit comments

Comments
 (0)