mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(ct): viteConfig commonjsOptions doesn't work (#22063)
This commit is contained in:
parent
2428ff8b8b
commit
8d6f7ad521
@ -104,9 +104,6 @@ export function createPlugin(
|
||||
|
||||
viteConfig.root = rootDir;
|
||||
viteConfig.preview = { port, ...viteConfig.preview };
|
||||
viteConfig.build = {
|
||||
outDir
|
||||
};
|
||||
|
||||
// React heuristic. If we see a component in a file with .js extension,
|
||||
// consider it a potential JSX-in-JS scenario and enable JSX loader for all
|
||||
@ -138,6 +135,7 @@ export function createPlugin(
|
||||
viteConfig.css.devSourcemap = true;
|
||||
viteConfig.build = {
|
||||
...viteConfig.build,
|
||||
outDir,
|
||||
target: 'esnext',
|
||||
minify: false,
|
||||
rollupOptions: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user