[Pkg-javascript-commits] [libjs-handlebars] 01/03: call webpack from Gruntfile
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sun Dec 31 14:36:13 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository libjs-handlebars.
commit 804be85eedf4de838e70af3794e64771acc0bfa1
Author: Pirate Praveen <praveen at debian.org>
Date: Sun Dec 31 19:56:04 2017 +0530
call webpack from Gruntfile
---
debian/patches/use-babelrc-for-webpack.patch | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/debian/patches/use-babelrc-for-webpack.patch b/debian/patches/use-babelrc-for-webpack.patch
index 3628bc3..7fc622d 100644
--- a/debian/patches/use-babelrc-for-webpack.patch
+++ b/debian/patches/use-babelrc-for-webpack.patch
@@ -8,8 +8,21 @@
module.exports = function(grunt) {
function babelPreset(modules) {
-@@ -92,8 +95,14 @@
- { test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader?optional=runtime&loose=es6.modules&auxiliaryCommentBefore=istanbul%20ignore%20next' }
+@@ -89,11 +92,26 @@
+ 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' }
++ {
++ test: /\.jsx?$/,
++ exclude: /node_modules/,
++ use: {
++ loader: 'babel-loader',
++ options: {
++ presets: babelPreset()
++ }
++ }
++ }
]
},
+ resolve: {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/libjs-handlebars.git
More information about the Pkg-javascript-commits
mailing list