Skip to content

Commit 9b26097

Browse files
committed
Fix declare breaking babel
1 parent 8072045 commit 9b26097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/processScript/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export async function processScript(code: string, {
184184
filePathResolved = getRelativePath(`.`, filePath)
185185

186186
if (filePath.endsWith(`.ts`)) {
187-
plugins.push([
187+
plugins.unshift([
188188
(await import(`@babel/plugin-transform-typescript`)),
189189
{ allowDeclareFields: true, optimizeConstEnums: true }
190190
])

0 commit comments

Comments
 (0)