summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-12-24 09:44:26 -0600
committerkpdecker <kpdecker@gmail.com>2015-12-26 18:49:28 -0600
commit400bada31fbaba5296e9ce574dfec8e7b8c05039 (patch)
tree90f5c19a3c26471312d0b8aab33f8d9e818c7b79
parent834695e241df252e9c4cb90b2970ad7defa134a4 (diff)
downloadhandlebars.js-400bada31fbaba5296e9ce574dfec8e7b8c05039.zip
handlebars.js-400bada31fbaba5296e9ce574dfec8e7b8c05039.tar.gz
handlebars.js-400bada31fbaba5296e9ce574dfec8e7b8c05039.tar.bz2
Avoid multiple babel execution cycles
-rw-r--r--Gruntfile.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 266b0c3..fd960cb 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'
}