Skip to content

Commit

Permalink
fix: 剔除srcTranspiler无用none枚举 (#11731)
Browse files Browse the repository at this point in the history
  • Loading branch information
PopperLi authored Oct 18, 2023
1 parent 20f8943 commit a9dd52a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/docs/api/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ styles: [`body { color: red; }`, `https://a.com/b.css`],

## srcTranspiler

- 类型:`string` 可选的值:`babel`, `swc`, `esbuild`, `none`
- 类型:`string` 可选的值:`babel`, `swc`, `esbuild`
- 默认值:`babel`

配置构建时转译 js/ts 的工具。
Expand Down
1 change: 0 additions & 1 deletion packages/bundler-webpack/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ export function getSchemas(): Record<string, (arg: { zod: typeof z }) => any> {
Transpiler.babel,
Transpiler.esbuild,
Transpiler.swc,
Transpiler.none,
]),
srcTranspilerOptions: ({ zod }) =>
zod
Expand Down

1 comment on commit a9dd52a

@vercel
Copy link

@vercel vercel bot commented on a9dd52a Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.