debian/patches/rollup.patch
raw| 1 | From: Sergei Golovan |
| 2 | Subject: Patch specifies terser options for the modern format. |
| 3 | Last-Modified: Wed, 22 Apr 2026 00:25:41 +0300 |
| 4 | |
| 5 | --- /dev/null |
| 6 | +++ b/rollup.modern.mjs |
| 7 | @@ -0,0 +1,11 @@ |
| 8 | +import terser from '/usr/share/nodejs/@rollup/plugin-terser/dist/cjs/index.js'; |
| 9 | + |
| 10 | +export default { |
| 11 | + output: { |
| 12 | + plugins: [terser({ |
| 13 | + module: true, |
| 14 | + ecma: 2017, |
| 15 | + toplevel: true, |
| 16 | + })] |
| 17 | + } |
| 18 | +}; |