Skip to content

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

Revert "fix(build): don't compile our web files twice with babel (#9470)" (#9488)

Max Schmitt1a69b26db16c
diff --git a/babel.config.json b/babel.config.json
index cb1cad7f3a..db3716e3ae 100644
--- a/babel.config.json
+++ b/babel.config.json
@@ -12,6 +12,7 @@
"@babel/plugin-transform-modules-commonjs"
],
"ignore": [
- "**/*.d.ts"
+ "**/*.d.ts",
+ "packages/playwright-core/src/injected/**/*"
]
}
diff --git a/utils/build/build.js b/utils/build/build.js
index a6df15552e..7080135551 100644
--- a/utils/build/build.js
+++ b/utils/build/build.js
@@ -143,13 +143,7 @@ for (const packageDir of packages) {
continue;
steps.push({
command: 'npx',
- args: [
- 'babel',
- ...(watchMode ? ['-w', '--source-maps'] : []),
- '--extensions', '.ts',
- '--out-dir', path.join(packageDir, 'lib'),
- '--ignore', 'packages/playwright-core/src/server/injected/**/*,packages/playwright-core/src/web/**/*',
- path.join(packageDir, 'src')],
+ args: ['babel', ...(watchMode ? ['-w', '--source-maps'] : []), '--extensions', '.ts', '--out-dir', path.join(packageDir, 'lib'), path.join(packageDir, 'src')],
shell: true,
});
}