File: fix-rollup-config.patch

package info (click to toggle)
node-readable-stream 4.2.0%2B~cs9.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,640 kB
  • sloc: javascript: 31,207; sh: 37; makefile: 11
file content (52 lines) | stat: -rw-r--r-- 1,560 bytes parent folder | download
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Description: fix rollup-config
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-08-22

--- a/abort-controller/rollup.config.js
+++ b/abort-controller/rollup.config.js
@@ -1,7 +1,6 @@
-import babel from "rollup-plugin-babel"
-import minify from "rollup-plugin-babel-minify"
-import resolve from "rollup-plugin-node-resolve"
-import typescript from "rollup-plugin-typescript"
+import babel from "@rollup/plugin-babel"
+import { nodeResolve } from "@rollup/plugin-node-resolve"
+import typescript from "rollup-plugin-typescript2"
 
 const banner = `/**
  * @author Toru Nagashima <https://github.com/mysticatea>
@@ -54,8 +53,8 @@
             sourcemap: true,
         },
         plugins: [
-            resolve(),
-            typescript({ module: "es2015" }),
+            nodeResolve(),
+            typescript({ module: "esnext" }),
             babel({
                 babelrc: false,
                 extensions: [".mjs", ".ts"],
@@ -71,11 +70,6 @@
                 ],
                 sourceMaps: true,
             }),
-            minify({
-                comments: false,
-                banner,
-                sourceMap: true,
-            }),
         ],
     },
 ]
--- a/abort-controller/tsconfig.json
+++ b/abort-controller/tsconfig.json
@@ -4,7 +4,7 @@
         "declaration": true,
         "esModuleInterop": true,
         "lib": ["es2015", "dom"],
-        "module": "commonjs",
+        "module": "esnext",
         "moduleResolution": "node",
         "newLine": "LF",
         "noFallthroughCasesInSwitch": true,