Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minify has a bug #17489

Closed
7 tasks done
MQYForverT opened this issue Jun 16, 2024 · 1 comment
Closed
7 tasks done

Minify has a bug #17489

MQYForverT opened this issue Jun 16, 2024 · 1 comment

Comments

@MQYForverT
Copy link

Describe the bug

  1. When Minify defaults to esbuild, the constructed content has naming conflicts
  2. When Minify is set to terser, it does not work (terser is already installed)

Reproduction

no

Steps to reproduce

1、Configure lib
lib: {
entry: resolve(__dirname, 'index.ts'), // 设置入口文件
name: 'MqyUtils',
formats: ['es'],
},

2、build
vue-tsc && vite build

3、Uncaught SyntaxError: Identifier 'vi' has already been declared

4、If I set Minify to false, everything will be fine

System Info

node: v20.11.0
pnpm: 9.0.6
vite: ^5.3.1

Used Package Manager

pnpm

Logs

No response

Validations

Copy link

Hello @MQYForverT. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs reproduction will be closed if they have no activity within 3 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants