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
|
Description: fix for rollup 3
Author: Yadd <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/1022612
Forwarded: not-needed
Last-Update: 2022-10-26
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -1,5 +1,5 @@
-import {terser} from "rollup-plugin-terser";
-import * as meta from "./package.json";
+const { terser } = require("rollup-plugin-terser");
+const meta = require("./package.json");
const config = {
input: "src/index.js",
@@ -16,7 +16,7 @@
plugins: []
};
-export default [
+module.exports = [
config,
{
...config,
|