mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-12 11:50:22 +03:00
chore: add comment about async imports in babel (#23374)
https://github.com/microsoft/playwright/issues/23255
This commit is contained in:
parent
2582d3984b
commit
4eeb4655e9
@ -70,6 +70,7 @@ function babelTransformOptions(isTypeScript: boolean, isModule: boolean, plugins
|
||||
|
||||
if (!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')]);
|
||||
|
Loading…
Reference in New Issue
Block a user