File: fix-for-rollup-3.patch

package info (click to toggle)
node-resize-observer-polyfill 1.5.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 508 kB
  • sloc: javascript: 1,841; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: fix for rollup 3
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-11-02

--- a/rollup.config.js
+++ b/rollup.config.js
@@ -1,7 +1,7 @@
-import pkg from './package.json';
-import typescript from 'rollup-plugin-typescript';
+const pkg = require('./package.json');
+const typescript = require('@rollup/plugin-typescript');
 
-export default {
+module.exports = {
     input: 'src/index.js',
     output: [{
         name: 'ResizeObserver',