File: fix-for-rollup-3.patch

package info (click to toggle)
node-uvu 0.5.6%2B~cs4.10.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,656 kB
  • sloc: javascript: 6,953; makefile: 12
file content (40 lines) | stat: -rw-r--r-- 815 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Description: fix for rollup 3
Author: Yadd <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/1022678
Forwarded: not-needed
Last-Update: 2022-10-28

--- a/sade/rollup.config.js
+++ b/sade/rollup.config.js
@@ -1,5 +1,5 @@
-import { minify } from 'terser';
-import * as pkg from './package.json';
+const { minify } = require('terser');
+const pkg = require('./package.json');
 
 /**
  * @type {import('rollup').RollupOptions}
@@ -9,7 +9,7 @@
 	output: [{
 		format: 'esm',
 		file: pkg.module,
-		interop: false,
+		interop: 'auto',
 		freeze: false,
 		strict: false
 	}, {
@@ -17,7 +17,7 @@
 		file: pkg.main,
 		exports: 'default',
 		preferConst: true,
-		interop: false,
+		interop: 'auto',
 		freeze: false,
 		strict: false
 	}],
@@ -38,4 +38,4 @@
 	]
 }
 
-export default config;
+module.exports = config;