docs: fix the transpiler docs (#23550)

This commit is contained in:
Pavel Feldman 2023-06-06 16:16:06 -07:00 committed by GitHub
parent f9c3e1915b
commit 1cd8f7543b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -20,9 +20,9 @@ export default defineConfig({
## property: TestConfig.build
* since: v1.35
- type: ?<[Object]>
- `external` ?<[Array]<[string]>> Paths to exclude from the transpilation expressed as glob patterns. Typically heavy JS bundles your tests reference.
- `external` ?<[Array]<[string]>> Paths to exclude from the transpilation expressed as a list of glob patterns. Typically heavy JS bundles that your test uses are listed here.
Transpiler configuration.
Playwright transpiler configuration.
**Usage**
@ -31,7 +31,7 @@ import { defineConfig } from '@playwright/test';
export default defineConfig({
build: {
external: '**/*bundle.js',
external: ['**/*bundle.js'],
},
});
```

View file

@ -570,7 +570,7 @@ interface TestConfig {
*/
webServer?: TestConfigWebServer | TestConfigWebServer[];
/**
* Transpiler configuration.
* Playwright transpiler configuration.
*
* **Usage**
*
@ -580,7 +580,7 @@ interface TestConfig {
*
* export default defineConfig({
* build: {
* external: '**\/*bundle.js',
* external: ['**\/*bundle.js'],
* },
* });
* ```
@ -588,8 +588,8 @@ interface TestConfig {
*/
build?: {
/**
* Paths to exclude from the transpilation expressed as glob patterns. Typically heavy JS bundles your tests
* reference.
* Paths to exclude from the transpilation expressed as a list of glob patterns. Typically heavy JS bundles that your
* test uses are listed here.
*/
external?: Array<string>;
};