From 3bccfbc6928dbe31ee08a506f6fcd0729947c2ef Mon Sep 17 00:00:00 2001 From: dufu1991 Date: Wed, 11 Dec 2024 16:31:36 +0800 Subject: [PATCH] [md]Change rollup-plugin-md-ts dependencies --- packages/rollup-plugin-md-ts/package.json | 2 +- packages/rollup-plugin-md-ts/rollup.config.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/rollup-plugin-md-ts/package.json b/packages/rollup-plugin-md-ts/package.json index 0d8be7a..49727ba 100644 --- a/packages/rollup-plugin-md-ts/package.json +++ b/packages/rollup-plugin-md-ts/package.json @@ -40,6 +40,7 @@ "devDependencies": { "@eslint/js": "^9.16.0", "@rollup/plugin-node-resolve": "^15.3.0", + "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^12.1.1", "assert": "^2.1.0", "eslint": "^9.16.0", @@ -47,7 +48,6 @@ "fs": "^0.0.1-security", "globals": "^15.13.0", "mocha": "^11.0.1", - "rollup-plugin-uglify": "^6.0.4", "source-map-support": "^0.5.21", "tslib": "^2.8.1", "typescript": "^5.7.2", diff --git a/packages/rollup-plugin-md-ts/rollup.config.ts b/packages/rollup-plugin-md-ts/rollup.config.ts index d2fda42..3f6ebf6 100644 --- a/packages/rollup-plugin-md-ts/rollup.config.ts +++ b/packages/rollup-plugin-md-ts/rollup.config.ts @@ -1,6 +1,6 @@ import json from '@rollup/plugin-json'; import typescript from '@rollup/plugin-typescript'; -import { uglify } from 'rollup-plugin-uglify'; +import terser from '@rollup/plugin-terser'; import { readFileSync } from 'fs'; const pkg = JSON.parse(readFileSync('./package.json', 'utf8')); const external = Object.keys(pkg.dependencies); @@ -25,6 +25,6 @@ export default { tsconfig: './tsconfig.json' }), json(), - uglify() + terser() ] };