File: fix-for-rollup-3.patch

package info (click to toggle)
node-cross-fetch 3.1.5%2Bds.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 492 kB
  • sloc: javascript: 955; makefile: 46; sh: 15
file content (24 lines) | stat: -rw-r--r-- 678 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
Description: fix for rollup 3
Author: Yadd <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/1022683
Forwarded: not-needed
Last-Update: 2022-10-25

--- a/rollup.config.js
+++ b/rollup.config.js
@@ -1,12 +1,12 @@
 /* Rollup creates the browser version of the polyfill and ponyfill. */
-import path from 'path'
-import { terser } from 'rollup-plugin-terser'
+const path = require('path')
+const { terser } = require('rollup-plugin-terser')
 
 const input = '/usr/share/nodejs/whatwg-fetch/dist/fetch.umd.js'
 
 const outdent = str => str.replace(/^\s*/mg, '')
 
-export default [
+module.exports = [
   /**
    * Ponyfill for CommonJS or EcmaScript Modules
    * Description: