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
|
## property: TestConfig.build
|
||||||
* since: v1.35
|
* since: v1.35
|
||||||
- type: ?<[Object]>
|
- 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**
|
**Usage**
|
||||||
|
|
||||||
|
|
@ -31,7 +31,7 @@ import { defineConfig } from '@playwright/test';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
build: {
|
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[];
|
webServer?: TestConfigWebServer | TestConfigWebServer[];
|
||||||
/**
|
/**
|
||||||
* Transpiler configuration.
|
* Playwright transpiler configuration.
|
||||||
*
|
*
|
||||||
* **Usage**
|
* **Usage**
|
||||||
*
|
*
|
||||||
|
|
@ -580,7 +580,7 @@ interface TestConfig {
|
||||||
*
|
*
|
||||||
* export default defineConfig({
|
* export default defineConfig({
|
||||||
* build: {
|
* build: {
|
||||||
* external: '**\/*bundle.js',
|
* external: ['**\/*bundle.js'],
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
* ```
|
* ```
|
||||||
|
|
@ -588,8 +588,8 @@ interface TestConfig {
|
||||||
*/
|
*/
|
||||||
build?: {
|
build?: {
|
||||||
/**
|
/**
|
||||||
* Paths to exclude from the transpilation expressed as glob patterns. Typically heavy JS bundles your tests
|
* Paths to exclude from the transpilation expressed as a list of glob patterns. Typically heavy JS bundles that your
|
||||||
* reference.
|
* test uses are listed here.
|
||||||
*/
|
*/
|
||||||
external?: Array<string>;
|
external?: Array<string>;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue