File: fix-for-rollup-3.patch

package info (click to toggle)
node-d3-fetch 1.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 204 kB
  • sloc: javascript: 109; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 550 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
20
21
22
23
24
25
Description: fix for rollup 3
Author: Yadd <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/1022612
Forwarded: not-needed
Last-Update: 2022-10-26

--- a/rollup.config.js
+++ b/rollup.config.js
@@ -1,5 +1,5 @@
-import {terser} from "rollup-plugin-terser";
-import * as meta from "./package.json";
+const { terser } = require("rollup-plugin-terser");
+const meta = require("./package.json");
 
 const config = {
   input: "src/index.js",
@@ -16,7 +16,7 @@
   plugins: []
 };
 
-export default [
+module.exports = [
   config,
   {
     ...config,