Skip to content

Commit

Permalink
Feat 优化
Browse files Browse the repository at this point in the history
  • Loading branch information
webkubor committed Sep 12, 2024
1 parent 8293978 commit 1f30f37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import typescript from '@rollup/plugin-typescript';
import { dirname } from 'path';
import { terser } from '@rollup/plugin-terser'; // 导入 terser 插件
const aliases = {
resolve: [
// 设置别名
Expand Down Expand Up @@ -30,5 +31,6 @@ export default {
}),
commonjs(),
typescript(),
terser() // 添加 terser 插件以压缩代码
],
};

0 comments on commit 1f30f37

Please sign in to comment.