Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(webpack): Fix tests unable to run
Browse files Browse the repository at this point in the history
Needed to enable module processing in babel again. This means webpack cannot use tree shaking at the moment.
  • Loading branch information
codesuki authored and sgomes committed Feb 9, 2017
1 parent 80fe30e commit 1cd9e07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ module.exports = function(config) {
module: Object.assign({}, webpackConfig.module, {
// Cover source files when not debugging tests. Otherwise, omit coverage instrumenting to get
// uncluttered source maps.
loaders: webpackConfig.module.loaders.concat([config.singleRun ? {
rules: webpackConfig.module.rules.concat([config.singleRun ? {
test: /\.js$/,
include: path.resolve('./packages'),
loader: 'isparta',
loader: 'isparta-loader',
} : undefined]).filter(Boolean),
}),
}),
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,7 @@
},
"babel": {
"presets": [
[
"es2015",
{
"modules": false
}
]
"es2015"
],
"plugins": [
"transform-object-assign"
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = [{
},
devtool: IS_DEV ? 'source-map' : false,
module: {
loaders: [{
rules: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
Expand All @@ -90,7 +90,7 @@ module.exports = [{
},
devtool: IS_DEV ? 'source-map' : false,
module: {
loaders: [{
rules: [{
test: /\.js$/,
include: [path.resolve(__dirname, 'packages/material-components-web')],
exclude: /node_modules/,
Expand Down

0 comments on commit 1cd9e07

Please sign in to comment.