Skip to content

[Bug]: set the syntax es6, rspack not match the API schema #322

@wChenonly

Description

@wChenonly

Version

System:
OS: macOS 15.0.1
CPU: (8) arm64 Apple M1 Pro
Memory: 2.27 GB / 16.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 130.0.6723.70
Safari: 18.0.1
npmPackages:
@rslib/core: ^0.0.13 => 0.0.13

Details

When I set the syntax es6, I get the error

ValidationError: Invalid configuration object. Rspack has been initialized using a configuration object that does not match the API schema.

Image

Do we need to remove es6 to be consistent with rspack?

Keep it consistent with the official ECMAScript es2015, which is es6

Reproduce link

no

Reproduce Steps

  1. rsbuild.config.ts set syntax es6
// rsbuild.config.ts
import { defineConfig } from '@rslib/core'

export default defineConfig({
  lib: [
    {
      format: 'esm',
      syntax: 'es6',
      dts: { bundle: false }
    }
  ]
})
  1. executive npx rslib build

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