Skip to content

Commit 6f003fc

Browse files
committed
use identical webpack rules in karma config
1 parent 51e7512 commit 6f003fc

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

test/jasmine/karma.conf.js

+1-24
Original file line numberDiff line numberDiff line change
@@ -264,30 +264,7 @@ func.defaultConfig = {
264264
webpack: {
265265
target: ['web', 'es5'],
266266
module: {
267-
rules: [{
268-
test: /\.js$/,
269-
use: [
270-
'transform-loader?' + path.resolve(__dirname, '..', '..', 'tasks/util/shortcut_paths')
271-
]
272-
}, {
273-
test: /\.js$/,
274-
include: /node_modules/,
275-
use: {
276-
loader: 'babel-loader',
277-
options: {
278-
babelrc: false,
279-
configFile: false,
280-
plugins: [
281-
'@babel/plugin-transform-modules-commonjs'
282-
]
283-
}
284-
}
285-
}, {
286-
test: /\.(js|glsl)$/,
287-
use: [
288-
'ify-loader'
289-
]
290-
}]
267+
rules: webpackConfig.module.rules
291268
},
292269
resolve: {
293270
fallback: {

0 commit comments

Comments
 (0)