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
|
Description: fix for rollup 3
Author: Yadd <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/1022634
Forwarded: not-needed
Last-Update: 2022-10-26
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -1,7 +1,7 @@
-import babel from '@rollup/plugin-babel';
-import nodeResolve from '@rollup/plugin-node-resolve';
-import { terser } from 'rollup-plugin-terser';
-import pkg from './package.json';
+const babel = require('@rollup/plugin-babel');
+const nodeResolve = require('@rollup/plugin-node-resolve').nodeResolve;
+const { terser } = require('rollup-plugin-terser');
+const pkg = require('./package.json');
const getBabelOptions = ({ useESModules }) => ({
exclude: /node_modules/,
@@ -17,7 +17,7 @@
// check relative and absolute paths for windows and unix
const external = id => !id.startsWith('.') && !id.startsWith('/') && !id.includes(':');
-export default [
+module.exports = [
{
input,
output: { format: 'cjs', file: pkg.main },
|