Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: add comment about async imports in babel (#23374)
Max Schmitt4eeb4655e913
diff --git a/packages/playwright-test/bundles/babel/src/babelBundleImpl.ts b/packages/playwright-test/bundles/babel/src/babelBundleImpl.tsindex 2a9b246248..c71f24eec3 100644--- a/packages/playwright-test/bundles/babel/src/babelBundleImpl.ts+++ b/packages/playwright-test/bundles/babel/src/babelBundleImpl.ts@@ -70,6 +70,7 @@ function babelTransformOptions(isTypeScript: boolean, isModule: boolean, pluginsif (!isModule) {plugins.push([require('@babel/plugin-transform-modules-commonjs')]);+ // This converts async imports to require() calls so that we can intercept them with pirates.plugins.push([require('@babel/plugin-proposal-dynamic-import')]);} else {plugins.push([require('@babel/plugin-syntax-import-assertions')]);