From 77735664db68b151048375e1dfc46480efffe158 Mon Sep 17 00:00:00 2001 From: Lance Gliser Date: Thu, 19 Sep 2024 09:01:35 -0500 Subject: [PATCH] Activated terser plugin for rollup --- package.json | 1 + rollup.config.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2859e31..d01a9d1 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ }, "devDependencies": { "@eslint/js": "^9.10.0", + "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^11.1.6", "@types/emscripten": "^1.39.10", "@types/eslint__js": "^8.42.3", diff --git a/rollup.config.js b/rollup.config.js index 0edf127..c451a48 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,3 +1,4 @@ +import terser from "@rollup/plugin-terser"; import typescript from "@rollup/plugin-typescript"; import pkg from "./package.json" with { type: "json" }; @@ -12,7 +13,7 @@ export default { noEmitOnError: true, tsconfig: "./tsconfig.build.json", }), - // terser(), // minifies generated bundles + terser(), // minifies generated bundles ], external: [ ...Object.keys(pkg.dependencies || {}),