fix: allow 'declare' modifier while compiling

This commit is contained in:
CrescentLeaf
2025-09-06 16:43:05 +08:00
parent 2d92fffb55
commit 32369ec3bd

View File

@@ -11,7 +11,11 @@ async function compileJs(path: string) {
},
],
"@babel/preset-react",
"@babel/preset-typescript",
[
"@babel/preset-typescript", {
allowDeclareFields: true,
},
],
],
targets: {
chrome: "53",