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

This reverts commit 4d7b6b4b50.
This commit is contained in:
Max Schmitt 2021-10-14 01:02:31 +02:00 committed by GitHub
parent 283bdb8916
commit 1a69b26db1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -12,6 +12,7 @@
"@babel/plugin-transform-modules-commonjs"
],
"ignore": [
"**/*.d.ts"
"**/*.d.ts",
"packages/playwright-core/src/injected/**/*"
]
}

View File

@ -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,
});
}