From 06bcb557d9a5dc7c5e6abdb91886d5aa0fa26033 Mon Sep 17 00:00:00 2001 From: ShenXiaowei Date: Mon, 27 May 2024 18:17:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85?= =?UTF-8?q?=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- rollup.config.js | 2 +- rollup.plugins.config.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c688f9c..59eb69f 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "@rollup/plugin-commonjs": "^22.0.0", "@rollup/plugin-node-resolve": "^13.2.1", "@rollup/plugin-replace": "^4.0.0", - "@rollup/plugin-terser": "^0.4.1", "@rollup/plugin-typescript": "^8.3.2", "@types/webpack-env": "^1.16.4", "@typescript-eslint/eslint-plugin": "^5.29.0", @@ -33,6 +32,7 @@ "prettier": "^2.6.2", "rollup": "^2.70.2", "rollup-plugin-filesize": "^9.1.2", + "rollup-plugin-terser": "^7.0.2", "serve-static": "^1.15.0", "tslib": "^2.4.0", "typescript": "^4.9.5" diff --git a/rollup.config.js b/rollup.config.js index 5bb2a00..2f1acd2 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,5 +1,6 @@ // @ts-nocheck import { babel } from '@rollup/plugin-babel'; +import { terser } from 'rollup-plugin-terser'; import * as packageJson from './package.json'; import alias from '@rollup/plugin-alias'; import commonjs from '@rollup/plugin-commonjs'; @@ -7,7 +8,6 @@ import filesize from 'rollup-plugin-filesize'; import path from 'path'; import replace from '@rollup/plugin-replace'; import resolve from '@rollup/plugin-node-resolve'; -import terser from '@rollup/plugin-terser'; import typescript from '@rollup/plugin-typescript'; const processENV = process.argv[process.argv.length - 1] diff --git a/rollup.plugins.config.js b/rollup.plugins.config.js index cf42380..dfcacd2 100644 --- a/rollup.plugins.config.js +++ b/rollup.plugins.config.js @@ -1,12 +1,12 @@ import * as packageJson from './package.json'; import { babel } from '@rollup/plugin-babel'; +import { terser } from 'rollup-plugin-terser'; import alias from '@rollup/plugin-alias'; import commonjs from '@rollup/plugin-commonjs'; import filesize from 'rollup-plugin-filesize'; import path from 'path'; import replace from '@rollup/plugin-replace'; import resolve from '@rollup/plugin-node-resolve'; -import terser from '@rollup/plugin-terser'; import typescript from '@rollup/plugin-typescript'; const fs = require('fs');