|
1 | 1 | import * as path from "path";
|
2 | 2 | import { default as babel } from "@rollup/plugin-babel";
|
3 |
| -// import compiler from "@ampproject/rollup-plugin-closure-compiler"; |
4 | 3 | import copy from "rollup-plugin-copy";
|
5 | 4 | import extensions from "rollup-plugin-extensions";
|
6 | 5 | import prettier from "rollup-plugin-prettier";
|
@@ -130,7 +129,6 @@ function router() {
|
130 | 129 | preventAssignment: true,
|
131 | 130 | values: { "process.env.NODE_ENV": JSON.stringify("production") },
|
132 | 131 | }),
|
133 |
| - // compiler(), |
134 | 132 | terser({ ecma: 8, safari10: true }),
|
135 | 133 | ].concat(PRETTY ? prettier({ parser: "babel" }) : []),
|
136 | 134 | },
|
@@ -191,7 +189,6 @@ function router() {
|
191 | 189 | preventAssignment: true,
|
192 | 190 | values: { "process.env.NODE_ENV": JSON.stringify("production") },
|
193 | 191 | }),
|
194 |
| - // compiler(), |
195 | 192 | terser(),
|
196 | 193 | ].concat(PRETTY ? prettier({ parser: "babel" }) : []),
|
197 | 194 | },
|
@@ -332,7 +329,6 @@ function reactRouter() {
|
332 | 329 | preventAssignment: true,
|
333 | 330 | values: { "process.env.NODE_ENV": JSON.stringify("production") },
|
334 | 331 | }),
|
335 |
| - // compiler(), |
336 | 332 | terser({ ecma: 8, safari10: true }),
|
337 | 333 | ].concat(PRETTY ? prettier({ parser: "babel" }) : []),
|
338 | 334 | },
|
@@ -407,7 +403,6 @@ function reactRouter() {
|
407 | 403 | preventAssignment: true,
|
408 | 404 | values: { "process.env.NODE_ENV": JSON.stringify("production") },
|
409 | 405 | }),
|
410 |
| - // compiler(), |
411 | 406 | terser(),
|
412 | 407 | ].concat(PRETTY ? prettier({ parser: "babel" }) : []),
|
413 | 408 | },
|
@@ -553,7 +548,6 @@ function reactRouterDom() {
|
553 | 548 | preventAssignment: true,
|
554 | 549 | values: { "process.env.NODE_ENV": JSON.stringify("production") },
|
555 | 550 | }),
|
556 |
| - // compiler(), |
557 | 551 | terser({ ecma: 8, safari10: true }),
|
558 | 552 | ].concat(PRETTY ? prettier({ parser: "babel" }) : []),
|
559 | 553 | },
|
@@ -629,7 +623,6 @@ function reactRouterDom() {
|
629 | 623 | preventAssignment: true,
|
630 | 624 | values: { "process.env.NODE_ENV": JSON.stringify("production") },
|
631 | 625 | }),
|
632 |
| - // compiler(), |
633 | 626 | terser(),
|
634 | 627 | ].concat(PRETTY ? prettier({ parser: "babel" }) : []),
|
635 | 628 | },
|
@@ -681,7 +674,6 @@ function reactRouterDom() {
|
681 | 674 | plugins: ["babel-plugin-dev-expression"],
|
682 | 675 | extensions: [".ts", ".tsx"],
|
683 | 676 | }),
|
684 |
| - // compiler() |
685 | 677 | ].concat(PRETTY ? prettier({ parser: "babel" }) : []),
|
686 | 678 | },
|
687 | 679 | {
|
@@ -731,7 +723,6 @@ function reactRouterDom() {
|
731 | 723 | include: ["server.tsx"],
|
732 | 724 | noEmitOnError: true,
|
733 | 725 | }),
|
734 |
| - // compiler() |
735 | 726 | ].concat(PRETTY ? prettier({ parser: "babel" }) : []),
|
736 | 727 | },
|
737 | 728 | ];
|
|
0 commit comments