Skip to content

Commit

Permalink
fix: Better polyfill handling and sourcemap support
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed May 3, 2016
1 parent 981c796 commit ae45b01
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions config/babel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

module.exports = {
presets: [require.resolve('babel-preset-es2015')],
plugins: [require.resolve('babel-plugin-transform-runtime')]
presets: [require.resolve('babel-preset-es2015')]
}
2 changes: 1 addition & 1 deletion config/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = function (config) {
],
exclude: [],
preprocessors: {
'test/**/*': ['webpack']
'test/**/*': ['webpack', 'sourcemap']
},
webpack: webpackConfig.dev,
webpackMiddleware: {
Expand Down
2 changes: 1 addition & 1 deletion config/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const shared = {
}

const dev = _.defaultsDeep({}, shared, {
devtool: 'source-map',
devtool: 'inline-source-map',
debug: true
}, specific)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"args-parser": "^1.0.2",
"babel-core": "^6.7.4",
"babel-loader": "^6.2.4",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-polyfill": "^6.7.4",
"babel-preset-es2015": "^6.6.0",
"brfs": "^1.4.3",
Expand Down Expand Up @@ -58,6 +57,7 @@
"karma-mocha": "^0.2.2",
"karma-mocha-own-reporter": "^1.1.2",
"karma-phantomjs-launcher": "^1.0.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^1.7.0",
"lodash": "^4.8.2",
"mocha": "^2.4.5",
Expand Down

0 comments on commit ae45b01

Please sign in to comment.