File: use-polyfills-plugin.patch

package info (click to toggle)
node-uri-js 4.4.0%2Bdfsg-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 460 kB
  • sloc: javascript: 3,571; makefile: 8
file content (29 lines) | stat: -rw-r--r-- 705 bytes parent folder | download | duplicates (3)
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
Forwarded: https://github.com/garycourt/uri-js/pull/57

--- a/rollup.config.js
+++ b/rollup.config.js
@@ -1,17 +1,22 @@
 import nodeResolve from '@rollup/plugin-node-resolve';
+import commonjs from '@rollup/plugin-commonjs';
+import nodePolyfills from 'rollup-plugin-node-polyfills';
 import babel from '@rollup/plugin-babel';
 const packageJson = require('./package.json');
 
 export default {
 	input : "dist/esnext/index.js",
 	plugins: [
+		commonjs({
+                        transformMixedEsModules: true
+                }),
 		nodeResolve({
 			module: true,
 			jsnext: true,
 			preferBuiltins: false
 		}),
-
-		babel()
+		babel(),
+		nodePolyfills()
 	],
 	output: {
         	format : "umd",