Skip to content

Commit 3fdd9b5

Browse files
committed
ci: fix babel/sinon issues
1 parent 98d63f9 commit 3fdd9b5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

configs/webpack.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,27 @@ module.exports = {
1010
rules: [
1111
{
1212
test: /\.(t|j)sx?$/,
13+
exclude: /node_modules/,
1314
use: { loader: 'babel-loader' },
1415
},
16+
{
17+
test: /\.js$/,
18+
include: /node_modules\/sinon/,
19+
use: {
20+
loader: 'babel-loader',
21+
options: {
22+
presets: [
23+
['@babel/preset-env', {
24+
targets: { browsers: ['last 2 versions'] }
25+
}]
26+
]
27+
}
28+
},
29+
},
1530
{
1631
enforce: 'pre',
1732
test: /\.(t|j)sx?$/,
33+
exclude: /node_modules/,
1834
loader: 'source-map-loader',
1935
},
2036
],

0 commit comments

Comments
 (0)