Skip to content

Commit 2ddbda5

Browse files
author
nrgwsth
authored
Update webpack.config.js
webpack gives error that `['node_modules']` is not a valid exclude option. Use regex `/node_modules/`.
1 parent f87e035 commit 2ddbda5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/template/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var config = {
3939
{
4040
enforce: 'pre',
4141
test: /\.tsx?$/,
42-
exclude: ['node_modules'],
42+
exclude: [/\/node_modules\//],
4343
use: ['awesome-typescript-loader', 'source-map-loader']
4444
},
4545
!isProd

0 commit comments

Comments
 (0)