Skip to content

Commit 4b82bec

Browse files
Merge pull request #253 from SarahIsWeird/fix-declare
Fix `declare` breaking babel
2 parents 8072045 + 9b26097 commit 4b82bec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)