Skip to content

Commit

Permalink
Activated terser plugin for rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
lancegliser committed Sep 19, 2024
1 parent 404ff60 commit 7773566
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import terser from "@rollup/plugin-terser";
import typescript from "@rollup/plugin-typescript";
import pkg from "./package.json" with { type: "json" };

Expand All @@ -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 || {}),
Expand Down

0 comments on commit 7773566

Please sign in to comment.