Skip to content

Commit

Permalink
Add babel to webpack loaders to support browsers with ES5
Browse files Browse the repository at this point in the history
  • Loading branch information
alias-mac committed Feb 21, 2017
1 parent f503891 commit ad61e04
Show file tree
Hide file tree
Showing 3 changed files with 435 additions and 9 deletions.
12 changes: 11 additions & 1 deletion .config/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,23 @@ module.exports = function (config) {
webpack: {
devtool: 'inline-source-map',
module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules)/,
loader: 'babel-loader',
query: {
presets: ['es2015'],
},
},
],
preLoaders: [
{
test: /\.js$/,
include: [
path.resolve('src'),
],
loader: 'istanbul-instrumenter',
loader: 'istanbul-instrumenter-loader',
},
],
},
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
},
"homepage": "https://github.com/sugarcrm/ventana#readme",
"devDependencies": {
"babel-core": "^6.23.1",
"babel-loader": "^6.3.2",
"babel-preset-es2015": "^6.22.0",
"coveralls": "^2.11.16",
"istanbul-instrumenter-loader": "^2.0.0",
"jasmine-sinon": "^0.3.2",
Expand Down
Loading

0 comments on commit ad61e04

Please sign in to comment.