docs: fix the transpiler docs (#23550)
This commit is contained in:
parent
f9c3e1915b
commit
1cd8f7543b
|
|
@ -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'],
|
||||
},
|
||||
});
|
||||
```
|
||||
|
|
|
|||
8
packages/playwright-test/types/test.d.ts
vendored
8
packages/playwright-test/types/test.d.ts
vendored
|
|
@ -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>;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue