Skip to content
Permalink
Browse files

fix(compiling es6): add babel plugin, babel-preset-es2015

  • Loading branch information
jyounce committed Nov 9, 2015
1 parent acb30ef commit a0ca9b0a0537f899bfe49b5aa114d35d89592904
Showing with 3 additions and 3 deletions.
  1. +1 −1 package.json
  2. +2 −2 tasks/compile/es6.coffee
@@ -28,7 +28,7 @@
"prepend-file": "1.3.0"
},
"dependencies": {
"babel-plugin-transform-strict-mode": "6.1.2",
"babel-preset-es2015": "6.1.2",
"body-parser": "1.14.1",
"bower": "1.6.5",
"browser-sync": "2.9.12",
@@ -2,10 +2,10 @@ module.exports = (config, gulp, taskOpts={}) ->
q = require 'q'
babel = require 'gulp-babel'
plumber = require 'gulp-plumber'
useStrictMode = require 'babel-plugin-transform-strict-mode'
es2015 = require 'babel-preset-es2015'
tasks = require("#{config.req.helpers}/tasks") config
forWatchFile = !!taskOpts.watchFile
babelOpts = plugins: [useStrictMode]
babelOpts = presets: [es2015]

runTask = (src, dest) ->
defer = q.defer()

0 comments on commit a0ca9b0

Please sign in to comment.
You can’t perform that action at this time.