From 6aad8366bc72e9fc92fa2c51dedb463c60dc961b Mon Sep 17 00:00:00 2001 From: Sachin Neravath Date: Thu, 8 Jul 2021 12:05:31 +0530 Subject: [PATCH] build: replace rollup uglify plugin with terser --- rollup.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rollup.config.ts b/rollup.config.ts index a8a68430e..24bd4a528 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -5,7 +5,7 @@ import camelCase from 'lodash.camelcase'; import typescript from 'rollup-plugin-typescript2'; import json from 'rollup-plugin-json'; import license from 'rollup-plugin-license'; -import { terser } from "rollup-plugin-terser"; +import { terser } from 'rollup-plugin-terser'; import pkg from './package.json'; @@ -85,7 +85,7 @@ const minConfigs = pluginConfigs.map((config) => { // Resolve source maps to the original source sourceMaps(), - terser(), + terser({ format: { comments: false } }), license({ banner: { commentStyle: 'regular', @@ -166,7 +166,7 @@ export default [ // Resolve source maps to the original source sourceMaps(), - terser(), + terser({ format: { comments: false } }), license({ banner: { commentStyle: 'regular',