mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(build): don't compile our web files twice with babel (#9470)
This commit is contained in:
parent
2a0a44bc09
commit
4d7b6b4b50
@ -12,7 +12,6 @@
|
||||
"@babel/plugin-transform-modules-commonjs"
|
||||
],
|
||||
"ignore": [
|
||||
"**/*.d.ts",
|
||||
"packages/playwright-core/src/injected/**/*"
|
||||
"**/*.d.ts"
|
||||
]
|
||||
}
|
||||
|
||||
@ -143,7 +143,13 @@ for (const packageDir of packages) {
|
||||
continue;
|
||||
steps.push({
|
||||
command: 'npx',
|
||||
args: ['babel', ...(watchMode ? ['-w', '--source-maps'] : []), '--extensions', '.ts', '--out-dir', path.join(packageDir, 'lib'), path.join(packageDir, 'src')],
|
||||
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')],
|
||||
shell: true,
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user