[Pkg-javascript-commits] [node-yarnpkg] 01/01: Simplfy babel config

Paolo Greppi paolog-guest at moszumanska.debian.org
Mon Jan 8 14:57:56 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 3868d47931f7148ab2654daf9934f9c882581223
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Mon Jan 8 15:57:51 2018 +0100

    Simplfy babel config
---
 debian/patches/05-babel.diff | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/debian/patches/05-babel.diff b/debian/patches/05-babel.diff
index f99531f..87eff4e 100644
--- a/debian/patches/05-babel.diff
+++ b/debian/patches/05-babel.diff
@@ -1,5 +1,4 @@
-Description: Simplfy babel config; see:
- https://github.com/zertosh/babel-plugin-transform-inline-imports-commonjs/issues/10
+Description: Simplfy babel config
 Forwarded: not-needed
 Author: Paolo Greppi <paolo.greppi at libpf.com>
 
@@ -7,10 +6,10 @@ Index: node-yarnpkg/.babelrc
 ===================================================================
 --- node-yarnpkg.orig/.babelrc
 +++ node-yarnpkg/.babelrc
-@@ -1,14 +1,6 @@
+@@ -1,24 +1,10 @@
  {
    "only": "*.js",
-   "env": {
+-  "env": {
 -    "pre-node5": {
 -      "presets": ["es2015-node4"],
 -      "plugins": [
@@ -19,15 +18,20 @@ Index: node-yarnpkg/.babelrc
 -        ["transform-runtime", { "polyfill": true, "regenerator": false }]
 -      ]
 -    },
-     "test": {
-       "presets": ["es2015-node4"],
-       "plugins": [
-@@ -18,7 +10,7 @@
-   },
-   "presets": ["node5", "stage-0"],
+-    "test": {
+-      "presets": ["es2015-node4"],
+-      "plugins": [
+-        ["transform-inline-imports-commonjs"]
+-      ]
+-    }
+-  },
+-  "presets": ["node5", "stage-0"],
++  "env": {},
++  "presets": ["es2015", "stage-0"],
    "plugins": [
 -    ["transform-inline-imports-commonjs"],
-+    ["transform-es2015-modules-commonjs"],
++    "transform-flow-strip-types",
++    "transform-inline-imports-commonjs",
      ["transform-runtime", { "polyfill": false, "regenerator": true }]
    ]
  }

-- 
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