From 23f760ca4f5ad85e19f16af27703acc13f277c35 Mon Sep 17 00:00:00 2001 From: Tim Deubler Date: Fri, 30 Aug 2024 15:44:40 +0200 Subject: [PATCH] switch from deprecated to new terser package Signed-off-by: Tim Deubler --- packages/common/package.json | 2 +- packages/common/rollup.config.js | 2 +- packages/core/package.json | 2 +- packages/core/rollup.config.js | 2 +- packages/display/package.json | 2 +- packages/display/rollup.config.js | 2 +- packages/editor/package.json | 2 +- packages/editor/rollup.config.js | 2 +- packages/playground/package.json | 2 +- packages/playground/rollup.config.js | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/common/package.json b/packages/common/package.json index c88338db8..42e448fe1 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -28,7 +28,7 @@ "devDependencies": { "@rollup/plugin-typescript": "^8.3.4", "rollup": "^2.78.1", - "rollup-plugin-terser": "^7.0.2", + "@rollup/plugin-terser": "^0.4.4", "tslib": "^2.4.0", "typescript": "^4.7.4" }, diff --git a/packages/common/rollup.config.js b/packages/common/rollup.config.js index c4dc6d975..4b2e2f9b4 100644 --- a/packages/common/rollup.config.js +++ b/packages/common/rollup.config.js @@ -18,7 +18,7 @@ */ import typescript from '@rollup/plugin-typescript'; -import {terser} from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; const pkg = require('./package.json'); const production = process.env.BUILD === 'production'; diff --git a/packages/core/package.json b/packages/core/package.json index 472271f85..281b90850 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -41,7 +41,7 @@ "rbush": "^3.0.1", "rollup": "^2.78.1", "rollup-plugin-sourcemaps": "^0.6.3", - "rollup-plugin-terser": "^7.0.2", + "@rollup/plugin-terser": "^0.4.4", "tslib": "^2.4.0", "typescript": "^4.7.4" }, diff --git a/packages/core/rollup.config.js b/packages/core/rollup.config.js index ba90ae0d5..8dc40914b 100644 --- a/packages/core/rollup.config.js +++ b/packages/core/rollup.config.js @@ -20,7 +20,7 @@ import commonjs from '@rollup/plugin-commonjs'; import nodeResolve from '@rollup/plugin-node-resolve'; import typescript from '@rollup/plugin-typescript'; -import {terser} from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; import virtual from '@rollup/plugin-virtual'; import sourcemaps from 'rollup-plugin-sourcemaps'; import git from 'git-rev-sync'; diff --git a/packages/display/package.json b/packages/display/package.json index ba891c00b..fe87230e3 100644 --- a/packages/display/package.json +++ b/packages/display/package.json @@ -40,7 +40,7 @@ "gl-matrix": "^3.4.3", "rollup": "^2.79.1", "rollup-plugin-glslify": "^1.3.1", - "rollup-plugin-terser": "^7.0.2", + "@rollup/plugin-terser": "^0.4.4", "tslib": "^2.4.1", "typescript": "^4.7.4" }, diff --git a/packages/display/rollup.config.js b/packages/display/rollup.config.js index 4b1c7c151..72a48d9f0 100644 --- a/packages/display/rollup.config.js +++ b/packages/display/rollup.config.js @@ -18,7 +18,7 @@ */ import typescript from '@rollup/plugin-typescript'; -import {terser} from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; import commonjs from '@rollup/plugin-commonjs'; import nodeResolve from '@rollup/plugin-node-resolve'; import virtual from '@rollup/plugin-virtual'; diff --git a/packages/editor/package.json b/packages/editor/package.json index ebc6fc103..84da0dd12 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -36,7 +36,7 @@ "@rollup/plugin-typescript": "^8.3.4", "rollup": "^2.78.1", "rollup-plugin-img": "^1.1.0", - "rollup-plugin-terser": "^7.0.2", + "@rollup/plugin-terser": "^0.4.4", "tslib": "^2.4.0", "typescript": "^4.7.4" }, diff --git a/packages/editor/rollup.config.js b/packages/editor/rollup.config.js index f546c9743..cb54dafa2 100644 --- a/packages/editor/rollup.config.js +++ b/packages/editor/rollup.config.js @@ -18,7 +18,7 @@ */ import typescript from '@rollup/plugin-typescript'; -import {terser} from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; import image from 'rollup-plugin-img'; const pkg = require('./package.json'); diff --git a/packages/playground/package.json b/packages/playground/package.json index 5747c864e..00829e7cd 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -40,7 +40,7 @@ "rollup": "^2.78.1", "rollup-plugin-copy": "^3.4.0", "rollup-plugin-postcss": "^4.0.2", - "rollup-plugin-terser": "^7.0.2", + "@rollup/plugin-terser": "^0.4.4", "sass": "^1.54.5", "tslib": "^2.4.0", "typescript": "^4.7.4" diff --git a/packages/playground/rollup.config.js b/packages/playground/rollup.config.js index 25fd4ff3a..7f20cc222 100644 --- a/packages/playground/rollup.config.js +++ b/packages/playground/rollup.config.js @@ -27,7 +27,7 @@ import virtual from '@rollup/plugin-virtual'; import json from '@rollup/plugin-json'; import settings from './settings.json'; import {join} from 'path'; -import {terser} from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; import fs from 'fs'; import nodeResolve from 'resolve'; const tsServicePath = nodeResolve.sync('typescript/lib/typescriptServices.js');