Skip to content

Commit 0970c90

Browse files
cyfung1031CodFrm
andauthored
⬆️ 提升swc兼容内核版本 (#1186)
* 修正 rspack 的 `jsc.target` 为 es2020 * targets 提升 内核版本 --------- Co-authored-by: 王一之 <yz@ggnb.top>
1 parent 18ddab5 commit 0970c90

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rspack.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const isDev = process.env.NODE_ENV === "development";
1313
const isBeta = version.includes("-");
1414

1515
// Target browsers, see: https://github.com/browserslist/browserslist
16-
const targets = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
16+
// 依照 https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/userScripts#browser_compatibility
17+
const targets = ["chrome >= 120", "edge >= 120", "firefox >= 136"];
1718

1819
const src = path.join(dirname, "src");
1920
const dist = path.join(dirname, "dist");

0 commit comments

Comments
 (0)