File: fix-for-rollup-3.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 (27 lines) | stat: -rw-r--r-- 807 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
Description: fix for rollup 3
Author: Yadd <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/1023874
Forwarded: not-needed
Last-Update: 2022-11-22

--- a/abort-controller/rollup.config.js
+++ b/abort-controller/rollup.config.js
@@ -1,6 +1,6 @@
-import babel from "@rollup/plugin-babel"
-import { nodeResolve } from "@rollup/plugin-node-resolve"
-import typescript from "rollup-plugin-typescript2"
+const babel = require("@rollup/plugin-babel")
+const { nodeResolve } = require("@rollup/plugin-node-resolve")
+const typescript = require("rollup-plugin-typescript2")
 
 const banner = `/**
  * @author Toru Nagashima <https://github.com/mysticatea>
@@ -19,7 +19,7 @@
 }
 `
 
-export default [
+module.exports = [
     {
         external: ["event-target-shim"],
         input: "src/abort-controller.ts",