Skip to content

Commit

Permalink
refactor: downgrade browser targets for swc transformer (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Aug 8, 2023
1 parent 5c4fe8a commit 08f592c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/config.md
Expand Up @@ -72,7 +72,7 @@ father 支持以下配置项。
| ---------- | ------------- | ---------------- |
| `browser` | `babel` | `{ ie: 11 }` |
| `browser` | `esbuild` | `{ chrome: 65 }` |
| `browser` | `swc` | `{ chrome: 65 }` |
| `browser` | `swc` | `{ ie: 11 }` |
| `node` | `babel` | `{ node: 14 }` |
| `node` | `esbuild` | `{ node: 14 }` |
| `node` | `swc` | `{ node: 14 }` |
Expand Down
2 changes: 1 addition & 1 deletion src/builder/utils.ts
Expand Up @@ -82,7 +82,7 @@ const defaultCompileTarget: Record<
[IFatherPlatformTypes.BROWSER]: {
[IFatherJSTransformerTypes.BABEL]: { ie: 11 },
[IFatherJSTransformerTypes.ESBUILD]: ['chrome65'],
[IFatherJSTransformerTypes.SWC]: { chrome: 65 },
[IFatherJSTransformerTypes.SWC]: { ie: 11 },
},
[IFatherPlatformTypes.NODE]: {
[IFatherJSTransformerTypes.BABEL]: { node: 14 },
Expand Down

0 comments on commit 08f592c

Please sign in to comment.