Commit 0b97dd7e authored by Fatih Acet's avatar Fatih Acet

Merge branch 'babel-all-the-things' into 'master'

Use babel to transpile all non-vendor javascript assets regardless of file extension

See merge request !8988
parents 674a1aee 63e79294
---
title: use babel to transpile all non-vendor javascript assets regardless of file
extension
merge_request: 8988
author:
...@@ -49,8 +49,8 @@ var config = { ...@@ -49,8 +49,8 @@ var config = {
module: { module: {
loaders: [ loaders: [
{ {
test: /\.es6$/, test: /\.(js|es6)$/,
exclude: /node_modules/, exclude: /(node_modules|vendor\/assets)/,
loader: 'babel-loader', loader: 'babel-loader',
query: { query: {
// 'use strict' was broken in sprockets-es6 due to sprockets concatination method. // 'use strict' was broken in sprockets-es6 due to sprockets concatination method.
......
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"dev-server": "node_modules/.bin/webpack-dev-server --config config/webpack.config.js", "dev-server": "webpack-dev-server --config config/webpack.config.js",
"eslint": "eslint --max-warnings 0 --ext .js,.js.es6 .", "eslint": "eslint --max-warnings 0 --ext .js,.js.es6 .",
"eslint-fix": "npm run eslint -- --fix", "eslint-fix": "npm run eslint -- --fix",
"eslint-report": "npm run eslint -- --format html --output-file ./eslint-report.html", "eslint-report": "npm run eslint -- --format html --output-file ./eslint-report.html",
"karma": "karma start config/karma.config.js --single-run", "karma": "karma start config/karma.config.js --single-run",
"karma-start": "karma start config/karma.config.js" "karma-start": "karma start config/karma.config.js",
"webpack": "webpack --config config/webpack.config.js",
"webpack-prod": "NODE_ENV=production npm run webpack"
}, },
"dependencies": { "dependencies": {
"babel": "^5.8.38", "babel": "^5.8.38",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment