[Pkg-javascript-commits] [node-yarnpkg] 01/01: Simplfy babel config
Paolo Greppi
paolog-guest at moszumanska.debian.org
Mon Jan 8 10:40:16 UTC 2018
This is an automated email from the git hooks/post-receive script.
paolog-guest pushed a commit to branch master
in repository node-yarnpkg.
commit 3fa923e9aeb159869dff3e1664ce68ec738df75c
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date: Mon Jan 8 11:40:13 2018 +0100
Simplfy babel config
---
debian/patches/05-babel.diff | 33 +++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 34 insertions(+)
diff --git a/debian/patches/05-babel.diff b/debian/patches/05-babel.diff
new file mode 100644
index 0000000..f99531f
--- /dev/null
+++ b/debian/patches/05-babel.diff
@@ -0,0 +1,33 @@
+Description: Simplfy babel config; see:
+ https://github.com/zertosh/babel-plugin-transform-inline-imports-commonjs/issues/10
+Forwarded: not-needed
+Author: Paolo Greppi <paolo.greppi at libpf.com>
+
+Index: node-yarnpkg/.babelrc
+===================================================================
+--- node-yarnpkg.orig/.babelrc
++++ node-yarnpkg/.babelrc
+@@ -1,14 +1,6 @@
+ {
+ "only": "*.js",
+ "env": {
+- "pre-node5": {
+- "presets": ["es2015-node4"],
+- "plugins": [
+- ["array-includes"],
+- ["transform-inline-imports-commonjs"],
+- ["transform-runtime", { "polyfill": true, "regenerator": false }]
+- ]
+- },
+ "test": {
+ "presets": ["es2015-node4"],
+ "plugins": [
+@@ -18,7 +10,7 @@
+ },
+ "presets": ["node5", "stage-0"],
+ "plugins": [
+- ["transform-inline-imports-commonjs"],
++ ["transform-es2015-modules-commonjs"],
+ ["transform-runtime", { "polyfill": false, "regenerator": true }]
+ ]
+ }
diff --git a/debian/patches/series b/debian/patches/series
index fb00719..cba4adb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
02-leven.diff
03-gulp-watch.diff
04-gulp-if.diff
+05-babel.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-yarnpkg.git
More information about the Pkg-javascript-commits
mailing list