Use node-rollup-plugin-terser (now available in the archive)
Pirate Praveen
3 years ago
8 | 8 |
, pkg-js-tools
|
9 | 9 |
, node-tape
|
10 | 10 |
, rollup
|
11 | |
, uglifyjs.terser
|
|
11 |
, node-rollup-plugin-terser
|
12 | 12 |
, node-d3-array (>= 1)
|
13 | 13 |
, node-d3-path (>= 1)
|
14 | 14 |
Standards-Version: 4.4.1
|
debian/patches/remove-unsupported-syntax.patch
less
more
0 | |
This syntax is not supported in packaged rollup/node yet.
|
1 | |
Minified file is generated by uglifyjs.terser command line.
|
2 | |
|
3 | |
--- a/rollup.config.js
|
4 | |
+++ b/rollup.config.js
|
5 | |
@@ -1,4 +1,3 @@
|
6 | |
-import {terser} from "rollup-plugin-terser";
|
7 | |
import * as meta from "./package.json";
|
8 | |
|
9 | |
const config = {
|
10 | |
@@ -17,20 +16,5 @@
|
11 | |
};
|
12 | |
|
13 | |
export default [
|
14 | |
- config,
|
15 | |
- {
|
16 | |
- ...config,
|
17 | |
- output: {
|
18 | |
- ...config.output,
|
19 | |
- file: `dist/${meta.name}.min.js`
|
20 | |
- },
|
21 | |
- plugins: [
|
22 | |
- ...config.plugins,
|
23 | |
- terser({
|
24 | |
- output: {
|
25 | |
- preamble: config.output.banner
|
26 | |
- }
|
27 | |
- })
|
28 | |
- ]
|
29 | |
- }
|
30 | |
+ config
|
31 | |
];
|
3 | 3 |
|
4 | 4 |
--- a/rollup.config.js
|
5 | 5 |
+++ b/rollup.config.js
|
6 | |
@@ -9,7 +9,7 @@
|
|
6 |
@@ -10,7 +10,7 @@
|
7 | 7 |
format: "umd",
|
8 | 8 |
indent: false,
|
9 | 9 |
extend: true,
|
0 | |
remove-unsupported-syntax.patch
|
1 | 0 |
reproducible_build.diff
|
0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
# -*- makefile -*-
|
2 | |
|
3 | |
# Uncomment this to turn on verbose mode.
|
4 | |
#export DH_VERBOSE=1
|
5 | 2 |
|
6 | 3 |
%:
|
7 | 4 |
dh $@ --with nodejs
|
8 | 5 |
|
9 | 6 |
override_dh_auto_build:
|
10 | 7 |
rollup -c
|
11 | |
uglifyjs.terser dist/d3-chord.js -o dist/d3-chord.min.js
|