From 5cf6886783932e549c5a785f05705e0f6dfbe9ec Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Fri, 28 Oct 2022 10:03:57 -0400 Subject: [PATCH] Switch to @rollup/plugin-terser (#1258) --- packages/d3-state-visualizer/package.json | 2 +- packages/d3-state-visualizer/rollup.config.js | 2 +- packages/d3tooltip/package.json | 2 +- packages/d3tooltip/rollup.config.js | 2 +- packages/map2tree/package.json | 2 +- packages/map2tree/rollup.config.js | 2 +- packages/react-json-tree/package.json | 2 +- packages/react-json-tree/rollup.config.js | 2 +- pnpm-lock.yaml | 41 ++++++++++--------- 9 files changed, 29 insertions(+), 28 deletions(-) diff --git a/packages/d3-state-visualizer/package.json b/packages/d3-state-visualizer/package.json index 0103ae8e..739efd93 100644 --- a/packages/d3-state-visualizer/package.json +++ b/packages/d3-state-visualizer/package.json @@ -60,6 +60,7 @@ "@rollup/plugin-babel": "^6.0.0", "@rollup/plugin-commonjs": "^23.0.0", "@rollup/plugin-node-resolve": "^15.0.0", + "@rollup/plugin-terser": "^0.1.0", "@types/node": "^16.11.66", "@types/ramda": "^0.28.16", "@typescript-eslint/eslint-plugin": "^5.40.1", @@ -68,7 +69,6 @@ "eslint-config-prettier": "^8.5.0", "rimraf": "^3.0.2", "rollup": "^2.79.1", - "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.34.1", "tslib": "^2.4.0", "typescript": "~4.8.4" diff --git a/packages/d3-state-visualizer/rollup.config.js b/packages/d3-state-visualizer/rollup.config.js index 70ce4df1..e144a1bb 100644 --- a/packages/d3-state-visualizer/rollup.config.js +++ b/packages/d3-state-visualizer/rollup.config.js @@ -2,7 +2,7 @@ import typescript from 'rollup-plugin-typescript2'; import resolve from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; import babel from '@rollup/plugin-babel'; -import { terser } from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; const config = [ { diff --git a/packages/d3tooltip/package.json b/packages/d3tooltip/package.json index b3a8cf7a..1c265e26 100644 --- a/packages/d3tooltip/package.json +++ b/packages/d3tooltip/package.json @@ -51,6 +51,7 @@ "@rollup/plugin-babel": "^6.0.0", "@rollup/plugin-commonjs": "^23.0.0", "@rollup/plugin-node-resolve": "^15.0.0", + "@rollup/plugin-terser": "^0.1.0", "@types/d3": "^3.5.47", "@types/node": "^16.11.66", "@types/ramda": "^0.28.16", @@ -61,7 +62,6 @@ "eslint-config-prettier": "^8.5.0", "rimraf": "^3.0.2", "rollup": "^2.79.1", - "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.34.1", "tslib": "^2.4.0", "typescript": "~4.8.4" diff --git a/packages/d3tooltip/rollup.config.js b/packages/d3tooltip/rollup.config.js index 6a442f22..b2b9e71c 100644 --- a/packages/d3tooltip/rollup.config.js +++ b/packages/d3tooltip/rollup.config.js @@ -2,7 +2,7 @@ import typescript from 'rollup-plugin-typescript2'; import resolve from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; import babel from '@rollup/plugin-babel'; -import { terser } from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; const config = [ { diff --git a/packages/map2tree/package.json b/packages/map2tree/package.json index fd90148b..e97e7394 100755 --- a/packages/map2tree/package.json +++ b/packages/map2tree/package.json @@ -55,6 +55,7 @@ "@rollup/plugin-babel": "^6.0.0", "@rollup/plugin-commonjs": "^23.0.0", "@rollup/plugin-node-resolve": "^15.0.0", + "@rollup/plugin-terser": "^0.1.0", "@types/jest": "^27.5.2", "@types/lodash": "^4.14.186", "@types/node": "^16.11.66", @@ -67,7 +68,6 @@ "jest": "^27.5.1", "rimraf": "^3.0.2", "rollup": "^2.79.1", - "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.34.1", "ts-jest": "^27.1.5", "tslib": "^2.4.0", diff --git a/packages/map2tree/rollup.config.js b/packages/map2tree/rollup.config.js index f977bb7c..d7a30f91 100644 --- a/packages/map2tree/rollup.config.js +++ b/packages/map2tree/rollup.config.js @@ -2,7 +2,7 @@ import typescript from 'rollup-plugin-typescript2'; import resolve from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; import babel from '@rollup/plugin-babel'; -import { terser } from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; const config = [ { diff --git a/packages/react-json-tree/package.json b/packages/react-json-tree/package.json index 24c268d4..cb5cfd92 100644 --- a/packages/react-json-tree/package.json +++ b/packages/react-json-tree/package.json @@ -62,6 +62,7 @@ "@rollup/plugin-babel": "^6.0.0", "@rollup/plugin-commonjs": "^23.0.0", "@rollup/plugin-node-resolve": "^15.0.0", + "@rollup/plugin-terser": "^0.1.0", "@types/jest": "^27.5.2", "@types/node": "^16.11.66", "@types/react": "^18.0.21", @@ -78,7 +79,6 @@ "react-test-renderer": "^18.2.0", "rimraf": "^3.0.2", "rollup": "^2.79.1", - "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.34.1", "ts-jest": "^27.1.5", "tslib": "^2.4.0", diff --git a/packages/react-json-tree/rollup.config.js b/packages/react-json-tree/rollup.config.js index 8d2e2555..de6c3688 100644 --- a/packages/react-json-tree/rollup.config.js +++ b/packages/react-json-tree/rollup.config.js @@ -2,7 +2,7 @@ import typescript from 'rollup-plugin-typescript2'; import resolve from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; import babel from '@rollup/plugin-babel'; -import { terser } from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; const config = [ { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fc30126c..3200f3a8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -182,6 +182,7 @@ importers: '@rollup/plugin-babel': ^6.0.0 '@rollup/plugin-commonjs': ^23.0.0 '@rollup/plugin-node-resolve': ^15.0.0 + '@rollup/plugin-terser': ^0.1.0 '@types/d3': ^3.5.47 '@types/node': ^16.11.66 '@types/ramda': ^0.28.16 @@ -196,7 +197,6 @@ importers: ramda: ^0.28.0 rimraf: ^3.0.2 rollup: ^2.79.1 - rollup-plugin-terser: ^7.0.2 rollup-plugin-typescript2: ^0.34.1 tslib: ^2.4.0 typescript: ~4.8.4 @@ -218,6 +218,7 @@ importers: '@rollup/plugin-babel': 6.0.0_vy4anxjpv2s44kyfi2kxqu576u '@rollup/plugin-commonjs': 23.0.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 15.0.0_rollup@2.79.1 + '@rollup/plugin-terser': 0.1.0_rollup@2.79.1 '@types/node': 16.11.66 '@types/ramda': 0.28.16 '@typescript-eslint/eslint-plugin': 5.40.1_ukgdydjtebaxmxfqp5v5ulh64y @@ -226,7 +227,6 @@ importers: eslint-config-prettier: 8.5.0_eslint@8.25.0 rimraf: 3.0.2 rollup: 2.79.1 - rollup-plugin-terser: 7.0.2_rollup@2.79.1 rollup-plugin-typescript2: 0.34.1_gypgyaqhine6mwjfvh7icfhviq tslib: 2.4.0 typescript: 4.8.4 @@ -286,6 +286,7 @@ importers: '@rollup/plugin-babel': ^6.0.0 '@rollup/plugin-commonjs': ^23.0.0 '@rollup/plugin-node-resolve': ^15.0.0 + '@rollup/plugin-terser': ^0.1.0 '@types/d3': ^3.5.47 '@types/node': ^16.11.66 '@types/ramda': ^0.28.16 @@ -297,7 +298,6 @@ importers: ramda: ^0.28.0 rimraf: ^3.0.2 rollup: ^2.79.1 - rollup-plugin-terser: ^7.0.2 rollup-plugin-typescript2: ^0.34.1 tslib: ^2.4.0 typescript: ~4.8.4 @@ -314,6 +314,7 @@ importers: '@rollup/plugin-babel': 6.0.0_vy4anxjpv2s44kyfi2kxqu576u '@rollup/plugin-commonjs': 23.0.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 15.0.0_rollup@2.79.1 + '@rollup/plugin-terser': 0.1.0_rollup@2.79.1 '@types/d3': 3.5.47 '@types/node': 16.11.66 '@types/ramda': 0.28.16 @@ -324,7 +325,6 @@ importers: eslint-config-prettier: 8.5.0_eslint@8.25.0 rimraf: 3.0.2 rollup: 2.79.1 - rollup-plugin-terser: 7.0.2_rollup@2.79.1 rollup-plugin-typescript2: 0.34.1_gypgyaqhine6mwjfvh7icfhviq tslib: 2.4.0 typescript: 4.8.4 @@ -341,6 +341,7 @@ importers: '@rollup/plugin-babel': ^6.0.0 '@rollup/plugin-commonjs': ^23.0.0 '@rollup/plugin-node-resolve': ^15.0.0 + '@rollup/plugin-terser': ^0.1.0 '@types/jest': ^27.5.2 '@types/lodash': ^4.14.186 '@types/node': ^16.11.66 @@ -354,7 +355,6 @@ importers: lodash: ^4.17.21 rimraf: ^3.0.2 rollup: ^2.79.1 - rollup-plugin-terser: ^7.0.2 rollup-plugin-typescript2: ^0.34.1 ts-jest: ^27.1.5 tslib: ^2.4.0 @@ -372,6 +372,7 @@ importers: '@rollup/plugin-babel': 6.0.0_vy4anxjpv2s44kyfi2kxqu576u '@rollup/plugin-commonjs': 23.0.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 15.0.0_rollup@2.79.1 + '@rollup/plugin-terser': 0.1.0_rollup@2.79.1 '@types/jest': 27.5.2 '@types/lodash': 4.14.186 '@types/node': 16.11.66 @@ -384,7 +385,6 @@ importers: jest: 27.5.1 rimraf: 3.0.2 rollup: 2.79.1 - rollup-plugin-terser: 7.0.2_rollup@2.79.1 rollup-plugin-typescript2: 0.34.1_gypgyaqhine6mwjfvh7icfhviq ts-jest: 27.1.5_zgo3ukr7wfsrfu7w73hol4lxpy tslib: 2.4.0 @@ -586,6 +586,7 @@ importers: '@rollup/plugin-babel': ^6.0.0 '@rollup/plugin-commonjs': ^23.0.0 '@rollup/plugin-node-resolve': ^15.0.0 + '@rollup/plugin-terser': ^0.1.0 '@types/jest': ^27.5.2 '@types/lodash': ^4.14.186 '@types/node': ^16.11.66 @@ -606,7 +607,6 @@ importers: react-test-renderer: ^18.2.0 rimraf: ^3.0.2 rollup: ^2.79.1 - rollup-plugin-terser: ^7.0.2 rollup-plugin-typescript2: ^0.34.1 ts-jest: ^27.1.5 tslib: ^2.4.0 @@ -628,6 +628,7 @@ importers: '@rollup/plugin-babel': 6.0.0_vy4anxjpv2s44kyfi2kxqu576u '@rollup/plugin-commonjs': 23.0.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 15.0.0_rollup@2.79.1 + '@rollup/plugin-terser': 0.1.0_rollup@2.79.1 '@types/jest': 27.5.2 '@types/node': 16.11.66 '@types/react': 18.0.21 @@ -644,7 +645,6 @@ importers: react-test-renderer: 18.2.0_react@18.2.0 rimraf: 3.0.2 rollup: 2.79.1 - rollup-plugin-terser: 7.0.2_rollup@2.79.1 rollup-plugin-typescript2: 0.34.1_gypgyaqhine6mwjfvh7icfhviq ts-jest: 27.1.5_zgo3ukr7wfsrfu7w73hol4lxpy tslib: 2.4.0 @@ -6486,6 +6486,19 @@ packages: rollup: 2.79.1 dev: true + /@rollup/plugin-terser/0.1.0_rollup@2.79.1: + resolution: {integrity: sha512-N2KK+qUfHX2hBzVzM41UWGLrEmcjVC37spC8R3c9mt3oEDFKh3N2e12/lLp9aVSt86veR0TQiCNQXrm8C6aiUQ==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^2.x || ^3.x + peerDependenciesMeta: + rollup: + optional: true + dependencies: + rollup: 2.79.1 + terser: 5.15.1 + dev: true + /@rollup/pluginutils/4.2.1: resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==} engines: {node: '>= 8.0.0'} @@ -19720,18 +19733,6 @@ packages: sprintf-js: 1.1.2 optional: true - /rollup-plugin-terser/7.0.2_rollup@2.79.1: - resolution: {integrity: sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==} - peerDependencies: - rollup: ^2.0.0 - dependencies: - '@babel/code-frame': 7.18.6 - jest-worker: 26.6.2 - rollup: 2.79.1 - serialize-javascript: 4.0.0 - terser: 5.15.1 - dev: true - /rollup-plugin-typescript2/0.34.1_gypgyaqhine6mwjfvh7icfhviq: resolution: {integrity: sha512-P4cHLtGikESmqi1CA+tdMDUv8WbQV48mzPYt77TSTOPJpERyZ9TXdDgjSDix8Fkqce6soYz3+fa4lrC93IEkcw==} peerDependencies: