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

View File

@@ -58,11 +58,12 @@ module.exports = function(config) {
} }
}, { }, {
test: /\.js$/, test: /\.js$/,
loader: 'babel-istanbul', loader: 'babel-loader',
include: [path.resolve() + '/client/src/'], include: [path.resolve() + '/client/src/'],
exclude: '/(node_modules)/', exclude: '/(node_modules)/',
query: { 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", "angular-mocks": "^1.5.8",
"babel-core": "^6.11.4", "babel-core": "^6.11.4",
"babel-istanbul": "^0.11.0", "babel-istanbul": "^0.11.0",
"babel-istanbul-loader": "^0.1.0",
"babel-loader": "^6.2.4", "babel-loader": "^6.2.4",
"babel-plugin-istanbul": "^2.0.0",
"babel-preset-es2015": "^6.9.0", "babel-preset-es2015": "^6.9.0",
"browser-sync": "^2.14.0", "browser-sync": "^2.14.0",
"expose-loader": "^0.7.1", "expose-loader": "^0.7.1",

11232
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff