Skip to content

Commit

Permalink
REMOVE the includes filter
Browse files Browse the repository at this point in the history
This should drastically improve monorepo support
  • Loading branch information
ndelangen committed Nov 15, 2019
1 parent 58f45ba commit 288cb50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions lib/core/src/server/common/babel-loader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { includePaths, excludePaths } from '../config/utils';
import { excludePaths } from '../config/utils';

export default options => ({
test: /\.(mjs|jsx?)$/,
Expand All @@ -8,6 +8,5 @@ export default options => ({
options,
},
],
include: includePaths,
exclude: excludePaths,
});
1 change: 0 additions & 1 deletion lib/core/src/server/config/utils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import path from 'path';
import { getEnvironment } from 'lazy-universal-dotenv';

export const includePaths = [path.resolve('./')];
export const nodeModulesPaths = path.resolve('./node_modules');
export const excludePaths = [/node_modules/];

Expand Down

0 comments on commit 288cb50

Please sign in to comment.