Skip to content

Commit c07cf10

Browse files
committed
build: adjust target of esbuild for tests
set the target to 'auto-always' to allow the test runner to adjust accordingly to each browser, especially if a feature is not available in the latest browser that the test runner is using
1 parent 18cdba6 commit c07cf10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-test-runner.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { playwrightLauncher } from '@web/test-runner-playwright';
44
export default {
55
nodeResolve: true,
66
files: 'packages/**/*.test.ts',
7-
plugins: [esbuildPlugin({ ts: true, target: 'auto' })],
7+
plugins: [esbuildPlugin({ ts: true, target: 'auto-always' })],
88
browsers: [
99
playwrightLauncher({ product: 'chromium' }),
1010
playwrightLauncher({ product: 'firefox' }),

0 commit comments

Comments
 (0)