added patch for unsupported syntax
nilesh
4 years ago
|
0 |
added patch to fix rollup.config.js
|
|
1 |
--- a/rollup.config.js
|
|
2 |
+++ b/rollup.config.js
|
|
3 |
@@ -1,4 +1,3 @@
|
|
4 |
-import {terser} from "rollup-plugin-terser";
|
|
5 |
import * as meta from "./package.json";
|
|
6 |
|
|
7 |
const config = {
|
|
8 |
@@ -18,19 +17,4 @@
|
|
9 |
|
|
10 |
export default [
|
|
11 |
config,
|
|
12 |
- {
|
|
13 |
- ...config,
|
|
14 |
- output: {
|
|
15 |
- ...config.output,
|
|
16 |
- file: `dist/${meta.name}.min.js`
|
|
17 |
- },
|
|
18 |
- plugins: [
|
|
19 |
- ...config.plugins,
|
|
20 |
- terser({
|
|
21 |
- output: {
|
|
22 |
- preamble: config.output.banner
|
|
23 |
- }
|
|
24 |
- })
|
|
25 |
- ]
|
|
26 |
- }
|
|
27 |
-];
|
|
28 |
+];
|
|
29 |
\ No newline at end of file
|