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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
Description: update rollup
Author: Yadd <yadd@debian.org>
Forwarded: no
Last-Update: 2021-11-09
--- a/resources/jestPreprocessor.js
+++ b/resources/jestPreprocessor.js
@@ -19,16 +19,16 @@
// while https://github.com/facebook/jest/issues/9504 is not resolved
const fn = makeSynchronous(async path => {
const rollup = require('rollup');
- const buble = require('rollup-plugin-buble');
- const commonjs = require('rollup-plugin-commonjs');
- const json = require('rollup-plugin-json');
- const stripBanner = require('rollup-plugin-strip-banner');
+ const buble = require('@rollup/plugin-buble');
+ const commonjs = require('@rollup/plugin-commonjs');
+ const json = require('@rollup/plugin-json');
+ //const stripBanner = require('@rollup/plugin-strip-banner');
// same input options as in rollup-config.js
const inputOptions = {
input: path,
onwarn: () => {},
- plugins: [commonjs(), json(), stripBanner(), buble()],
+ plugins: [commonjs(), json(), buble()],
};
const bundle = await rollup.rollup(inputOptions);
--- a/resources/rollup-config-es.js
+++ b/resources/rollup-config-es.js
@@ -1,8 +1,7 @@
import path from 'path';
-import buble from 'rollup-plugin-buble';
-import commonjs from 'rollup-plugin-commonjs';
-import json from 'rollup-plugin-json';
-import stripBanner from 'rollup-plugin-strip-banner';
+import buble from '@rollup/plugin-buble';
+import commonjs from '@rollup/plugin-commonjs';
+import json from '@rollup/plugin-json';
import copyright from './copyright';
@@ -18,5 +17,5 @@
format: 'es',
sourcemap: false,
},
- plugins: [commonjs(), json(), stripBanner(), buble()],
+ plugins: [commonjs(), json(), buble()],
};
--- a/resources/rollup-config.js
+++ b/resources/rollup-config.js
@@ -1,11 +1,11 @@
import fs from 'fs';
import path from 'path';
import { minify } from 'uglify-js';
-import buble from 'rollup-plugin-buble';
-import commonjs from 'rollup-plugin-commonjs';
-import json from 'rollup-plugin-json';
-import saveLicense from 'uglify-save-license';
-import stripBanner from 'rollup-plugin-strip-banner';
+import buble from '@rollup/plugin-buble';
+import commonjs from '@rollup/plugin-commonjs';
+import json from '@rollup/plugin-json';
+//import saveLicense from 'uglify-save-license';
+//import stripBanner from 'rollup-plugin-strip-banner';
import copyright from './copyright';
@@ -18,7 +18,7 @@
async renderChunk(code) {
const result = minify(code, {
mangle: { toplevel: true },
- output: { max_line_len: 2048, comments: saveLicense },
+ output: { max_line_len: 2048 },
compress: { comparisons: true, pure_getters: true, unsafe: true },
});
@@ -47,5 +47,5 @@
sourcemap: false,
plugins: [uglify()],
},
- plugins: [commonjs(), json(), stripBanner(), buble()],
+ plugins: [commonjs(), json(), buble()],
};
|