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"
|
"@babel/plugin-transform-modules-commonjs"
|
||||||
],
|
],
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"**/*.d.ts",
|
"**/*.d.ts"
|
||||||
"packages/playwright-core/src/injected/**/*"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,13 @@ for (const packageDir of packages) {
|
||||||
continue;
|
continue;
|
||||||
steps.push({
|
steps.push({
|
||||||
command: 'npx',
|
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,
|
shell: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue