Skip to content

Commit

Permalink
Add babel as a default loader
Browse files Browse the repository at this point in the history
  • Loading branch information
itkrt2y committed Dec 7, 2016
1 parent 0525952 commit 1d514b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ FIXME: Write the rest...

## Work left to do

- Add Babel as a default loader
- Consider chunking setup
- Consider switching to Webpack 2.0
- Consider on-demand compiling with digests when digesting=true
Expand Down
9 changes: 8 additions & 1 deletion lib/install/config/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ module.exports = {

module: {
loaders: [
{ test: /\.coffee$/, loader: "coffee-loader" }
{ test: /\.coffee$/, loader: "coffee-loader" },
{
test: /\.js$/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
},

Expand Down
2 changes: 1 addition & 1 deletion lib/install/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

directory "#{INSTALL_PATH}/config", 'config/webpack'

run './bin/yarn add webpack lodash'
run './bin/yarn add webpack lodash babel-loader babel-core babel-preset-es2015'

environment \
"# Make javascript_pack_tag lookup digest hash to enable long-term caching\n" +
Expand Down

0 comments on commit 1d514b8

Please sign in to comment.