From 1a69b26db16cd580d31fb54434725da4e9357c3d Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 14 Oct 2021 01:02:31 +0200 Subject: [PATCH] Revert "fix(build): don't compile our web files twice with babel (#9470)" (#9488) This reverts commit 4d7b6b4b50face1ef66fbc5506942ad06f7c7a6c. --- babel.config.json | 3 ++- utils/build/build.js | 8 +------- 2 files changed, 3 insertions(+), 8 deletions(-) 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, }); }