Skip to content

[Refactor Pack]: expose full config of swc minify #2741

@xusd320

Description

@xusd320

Now the minify feature only accepts no_mange and sequences config

We need to expose all swc minify , so user can control all of them. This will help us adapt to terser-webpack-plugin

Also need to update:

.minify_type(if *minify.await? {

.minify_type(if mode.is_production() && *minify.await? {

https://github.com/utooland/utoo/blob/next/packages/pack-shared/src/webpackCompat.ts

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions