Skip to content

Commit

Permalink
Use @cocos/rollup-plugin-terser
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Nov 7, 2024
1 parent d690ed0 commit c446d67
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 198 deletions.
4 changes: 2 additions & 2 deletions .api/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14893,7 +14893,7 @@ declare module "@cocos/ccbuild" {
* @param options - Plugin options.
* @returns Plugin instance.
*/
export function terser(options?: __private.___node_modules_rollup_plugin_terser_types_index__Options): Plugin;
export function terser(options?: __private.___node_modules_cocos_rollup_plugin_terser_types_index__Options): Plugin;
/**
* Seamless integration between Rollup and Typescript.
*/
Expand Down Expand Up @@ -16974,7 +16974,7 @@ declare module "@cocos/ccbuild" {
sourceMap?: boolean | ___node_modules_terser_tools_terser__SourceMapOptions;
toplevel?: boolean;
}
export interface ___node_modules_rollup_plugin_terser_types_index__Options extends ___node_modules_terser_tools_terser__MinifyOptions {
export interface ___node_modules_cocos_rollup_plugin_terser_types_index__Options extends ___node_modules_terser_tools_terser__MinifyOptions {
nameCache?: Record<string, any>;
maxWorkers?: number;
}
Expand Down
2 changes: 1 addition & 1 deletion modules/bundler/src/rollup/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import json from '@rollup/plugin-json';
import nodeResolve from '@cocos/rollup-plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import virtual from '@rollup/plugin-virtual';
import terser from '@rollup/plugin-terser';
import terser from '@cocos/rollup-plugin-terser';
import typescript from '@rollup/plugin-typescript';
// import progress from 'rollup-plugin-progress';

Expand Down
Loading

0 comments on commit c446d67

Please sign in to comment.