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
|
Description: fix for rollup 3
Author: Yadd <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/1022648
Forwarded: not-needed
Last-Update: 2022-10-26
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -1,8 +1,8 @@
-import nodeResolve from '@rollup/plugin-node-resolve';
-import commonjs from '@rollup/plugin-commonjs';
-import babel from '@rollup/plugin-babel';
-import replace from '@rollup/plugin-replace';
-import { terser } from 'rollup-plugin-terser';
+const nodeResolve = require('@rollup/plugin-node-resolve').nodeResolve;
+const commonjs = require('@rollup/plugin-commonjs');
+const babel = require('@rollup/plugin-babel');
+const replace = require('@rollup/plugin-replace');
+const { terser } = require('rollup-plugin-terser');
const input = './src/index.js';
@@ -16,7 +16,7 @@
exclude: '**/node_modules/**',
});
-export default [
+module.exports = [
{
input,
output: {
|