From 9bdba63570582f1967c61b180676f500b1fe5948 Mon Sep 17 00:00:00 2001 From: Sam Gammon Date: Sun, 5 Feb 2023 03:11:27 -0800 Subject: [PATCH] fix: swap deprecated terser plugin for new one - `rollup-plugin-terser` is deprecated in favor of `@rollup/plugin-terser` - swap dep, update import --- package.json | 2 +- rollup.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e824f55e..d4b5857d 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "@open-wc/testing": "^3.1.5", "@rollup/plugin-node-resolve": "^13.3.0", "@rollup/plugin-replace": "^5.0.2", + "@rollup/plugin-terser": "^0.4.0", "@typescript-eslint/eslint-plugin": "^5.25.0", "@typescript-eslint/parser": "^5.25.0", "@web/dev-server": "^0.1.31", @@ -63,7 +64,6 @@ "rimraf": "^3.0.2", "rollup": "^2.73.0", "rollup-plugin-summary": "^1.4.3", - "rollup-plugin-terser": "^7.0.2", "typescript": "~4.7.4" }, "customElements": "custom-elements.json" diff --git a/rollup.config.js b/rollup.config.js index a00e9b85..28b6d27a 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -5,7 +5,7 @@ */ import summary from 'rollup-plugin-summary'; -import {terser} from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; import resolve from '@rollup/plugin-node-resolve'; import replace from '@rollup/plugin-replace';