From bf260155e8ae1831866078a9a89b51ede0a2f1c0 Mon Sep 17 00:00:00 2001 From: DudaGod Date: Wed, 24 Jul 2024 23:39:15 +0300 Subject: [PATCH] fix(pwt): correctly import ts config with types --- lib/bundle/transformer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bundle/transformer.ts b/lib/bundle/transformer.ts index 5238a4772..f885dfa5b 100644 --- a/lib/bundle/transformer.ts +++ b/lib/bundle/transformer.ts @@ -10,6 +10,7 @@ export const setupTransformHook = (): VoidFunction => { babelrc: false, configFile: false, compact: false, + presets: [require('@babel/preset-typescript')], plugins: [ require('@babel/plugin-transform-modules-commonjs') ]