Skip to content

Commit ce216bb

Browse files
committed
Excluding only node_modules with babel-loader
1 parent 768dfdf commit ce216bb

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

packages/cli/templates/webcomponents/igc-ts/projects/empty/files/webpack.config.mjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export default ({
2929
},
3030
{
3131
test: /\.(ts|js)$/,
32+
exclude: /node_modules/,
3233
loader: 'babel-loader',
3334
options: {
3435
"compact": true,
@@ -53,12 +54,6 @@ export default ({
5354
"@babel/plugin-transform-runtime"
5455
]
5556
},
56-
exclude:
57-
function(modulePath) {
58-
return /node_modules/.test(modulePath) &&
59-
!/igniteui-webcomponents/.test(modulePath) &&
60-
!/lit-html/.test(modulePath);
61-
}
6257
}],
6358
},
6459

0 commit comments

Comments
 (0)