Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: opt out from the compact mode in babel (#22974)

Pavel Feldman49f647ca579a
diff --git a/packages/playwright-test/bundles/babel/src/babelBundleImpl.ts b/packages/playwright-test/bundles/babel/src/babelBundleImpl.ts
index 0e1a9b73c7..b2e489a7d6 100644
--- a/packages/playwright-test/bundles/babel/src/babelBundleImpl.ts
+++ b/packages/playwright-test/bundles/babel/src/babelBundleImpl.ts
@@ -99,6 +99,7 @@ export function babelTransform(filename: string, isTypeScript: boolean, isModule
[require('@babel/preset-typescript'), { onlyRemoveTypeImports: false }],
],
plugins,
+ compact: false,
sourceMaps: 'both',
} as babel.TransformOptions)!;
}