Skip to content

[Bug]: should not set target: 'es5' when using syntax #209

@chenjiahan

Description

@chenjiahan

Version

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 67.81 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 128.0.6613.138
    Safari: 17.6
  npmPackages:
    @rslib/core: 0.0.6 => 0.0.6

Details

Rslib should not set target: 'es5' when using syntax, this will increase the bundle size.

Reproduce link

config.target = ['es5'];

Reproduce Steps

See web-infra-dev/rsbuild#3502

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions