From 400bada31fbaba5296e9ce574dfec8e7b8c05039 Mon Sep 17 00:00:00 2001 From: kpdecker Date: Thu, 24 Dec 2015 09:44:26 -0600 Subject: [PATCH] Avoid multiple babel execution cycles --- Gruntfile.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 266b0c3a..fd960cb4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -45,9 +45,6 @@ module.exports = function(grunt) { auxiliaryCommentBefore: 'istanbul ignore next' }, cjs: { - options: { - modules: 'common' - }, files: [{ cwd: 'lib/', expand: true, @@ -59,12 +56,6 @@ module.exports = function(grunt) { webpack: { options: { context: __dirname, - module: { - loaders: [ - // the optional 'runtime' transformer tells babel to require the runtime instead of inlining it. - { test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader?optional=runtime&loose=es6.modules&auxiliaryCommentBefore=istanbul%20ignore%20next' } - ] - }, output: { path: 'dist/', library: 'Handlebars', @@ -72,13 +63,13 @@ module.exports = function(grunt) { } }, handlebars: { - entry: './lib/handlebars.js', + entry: './dist/cjs/handlebars.js', output: { filename: 'handlebars.js' } }, runtime: { - entry: './lib/handlebars.runtime.js', + entry: './dist/cjs/handlebars.runtime.js', output: { filename: 'handlebars.runtime.js' }