File: rollup.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 (42 lines) | stat: -rw-r--r-- 1,022 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
Description: ignore rollup-plugin-copy and fix input construction
Author: Nicolas Mora <babelouest@debian.org>
Forwarded: not-needed
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -1,9 +1,8 @@
 /* Rollup creates the browser version of the polyfill and ponyfill. */
 import path from 'path'
-import copy from 'rollup-plugin-copy'
 import { terser } from 'rollup-plugin-terser'
 
-const input = path.join(__dirname, 'node_modules', 'whatwg-fetch', 'fetch.js')
+const input = '/usr/share/nodejs/whatwg-fetch/dist/fetch.umd.js'
 
 const outdent = str => str.replace(/^\s*/mg, '')
 
@@ -60,12 +59,6 @@
       `)
     },
     plugins: [
-      copy({
-        targets: [
-          { src: 'src/*-ponyfill.js', dest: 'dist' }
-        ],
-        verbose: true
-      })
     ],
     context: 'this'
   },
@@ -91,12 +84,6 @@
       `)
     },
     plugins: [
-      copy({
-        targets: [
-          { src: 'src/*-polyfill.js', dest: 'dist' }
-        ],
-        verbose: true
-      })
     ],
     context: 'this'
   },