File: use-babel7.patch

package info (click to toggle)
node-eslint-plugin-flowtype 2.25.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 632 kB
  • sloc: javascript: 5,678; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@babel/preset-env is default preset for babel 7

Replace add-module-exports plugin with babel 7 equivalent

--- a/.babelrc
+++ b/.babelrc
@@ -1,9 +1,9 @@
 {
     "presets": [
-        "es2015",
-        "stage-0"
+        "@babel/env",
     ],
     "plugins": [
-        "add-module-exports"
+        "@babel/proposal-export-default-from",
+        "@babel/proposal-export-namespace-from"
     ]
 }