File: remove-syntax-trailing-function-commas.diff

package info (click to toggle)
node-react 18.3.1%2Bdfsg%2B~cs88.78.12-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,764 kB
  • sloc: javascript: 362,337; cpp: 1,326; sh: 52; makefile: 46
file content (35 lines) | stat: -rw-r--r-- 1,243 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: remove dependency plugin to node-babel-plugin-syntax-trailing-function-commas
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2020-10-27

--- a/babel.config.js
+++ b/babel.config.js
@@ -6,7 +6,6 @@
     '@babel/plugin-transform-react-jsx',
     '@babel/plugin-transform-flow-strip-types',
     ['@babel/plugin-proposal-class-properties', {loose: true}],
-    'syntax-trailing-function-commas',
     [
       '@babel/plugin-proposal-object-rest-spread',
       {loose: true, useBuiltIns: true},
--- a/package.json
+++ b/package.json
@@ -39,7 +39,6 @@
     "abort-controller": "^3.0.0",
     "art": "0.10.1",
     "babel-eslint": "^10.0.3",
-    "babel-plugin-syntax-trailing-function-commas": "^6.5.0",
     "chalk": "^3.0.0",
     "cli-table": "^0.3.1",
     "coffee-script": "^1.12.7",
--- a/scripts/rollup/build.js
+++ b/scripts/rollup/build.js
@@ -94,7 +94,6 @@
   // These plugins filter out non-ES2015.
   '@babel/plugin-transform-flow-strip-types',
   ['@babel/plugin-proposal-class-properties', {loose: true}],
-  'syntax-trailing-function-commas',
   // These use loose mode which avoids embedding a runtime.
   // TODO: Remove object spread from the source. Prefer Object.assign instead.
   [