use a better-supported babel plugin instead of jank webpack loader for istanbul instrumentation (#3341)

This commit is contained in:
Leigh Johnson
2016-09-07 11:47:19 -04:00
committed by GitHub
parent 27ab6705e7
commit c3b9050773
5 changed files with 8 additions and 15608 deletions

View File

@@ -74,7 +74,6 @@ module.exports = function(config) {
test: /\.angular.js$/,
loader: 'expose?angular'
},
{
test: /\.js$/,
loader: 'babel-loader',
@@ -85,11 +84,12 @@ module.exports = function(config) {
}
}, {
test: /\.js$/,
loader: 'babel-istanbul',
loader: 'babel-loader',
include: [path.resolve() + '/client/src/'],
exclude: '/(node_modules)/',
query: {
presets: ['es2015']
presets: ['es2015'],
plugins: ['istanbul']
}
}
]

View File

@@ -58,11 +58,12 @@ module.exports = function(config) {
}
}, {
test: /\.js$/,
loader: 'babel-istanbul',
loader: 'babel-loader',
include: [path.resolve() + '/client/src/'],
exclude: '/(node_modules)/',
query: {
presets: ['es2015']
presets: ['es2015'],
plugins: ['istanbul']
}
}
]

File diff suppressed because it is too large Load Diff

View File

@@ -29,8 +29,8 @@
"angular-mocks": "^1.5.8",
"babel-core": "^6.11.4",
"babel-istanbul": "^0.11.0",
"babel-istanbul-loader": "^0.1.0",
"babel-loader": "^6.2.4",
"babel-plugin-istanbul": "^2.0.0",
"babel-preset-es2015": "^6.9.0",
"browser-sync": "^2.14.0",
"expose-loader": "^0.7.1",