mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
d294c5da33
This required `allowJs: false` in our `tsconfig.json` due to the following error: ``` Error: Cannot find module './utilsBundleImpl' Require stack: - <playwright>/packages/playwright-core/src/utilsBundle.ts - <playwright>/packages/playwright-test/lib/reporters/html.js - <playwright>/tests/playwright-test/reporter-html.spec.ts - <playwright>/tests/playwright-test/stable-test-runner/node_modules/@playwright/test/lib/loader.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/@playwright/test/lib/runner.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/@playwright/test/lib/cli.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/playwright-core/lib/cli/cli.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/playwright-core/cli.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/@playwright/test/cli.js at ../../packages/playwright-core/src/utilsBundle.ts:20 18 | import path from 'path'; 19 | > 20 | export const colors: typeof import('../bundles/utils/node_modules/colors/safe') = require('./utilsBundleImpl').colors; | ^ 21 | export const debug: typeof import('../bundles/utils/node_modules/@types/debug') = require('./utilsBundleImpl').debug; 22 | export const getProxyForUrl: typeof import('../bundles/utils/node_modules/@types/proxy-from-env').getProxyForUrl = require('./utilsBundleImpl').getProxyForUrl; 23 | export const HttpsProxyAgent: typeof import('../bundles/utils/node_modules/https-proxy-agent').HttpsProxyAgent = require('./utilsBundleImpl').HttpsProxyAgent; at Object.<anonymous> (<playwright>/packages/playwright-core/src/utilsBundle.ts:20:83) at Object.<anonymous> (<playwright>/packages/playwright-test/src/reporters/html.ts:17:1) ```
43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2019",
|
|
"module": "commonjs",
|
|
"lib": ["esnext", "dom", "DOM.Iterable"],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
/*
|
|
The following two serve different purposes:
|
|
- @foo is for importing types only,
|
|
- foo/lib means require dependency
|
|
*/
|
|
"@html-reporter/*": ["./packages/html-reporter/src/*"],
|
|
"@protocol/*": ["./packages/protocol/src/*"],
|
|
"@recorder/*": ["./packages/recorder/src/*"],
|
|
"@trace/*": ["./packages/trace/src/*"],
|
|
"playwright-core/lib/*": ["./packages/playwright-core/src/*"]
|
|
},
|
|
"esModuleInterop": true,
|
|
"strict": true,
|
|
"allowJs": false,
|
|
"jsx": "react",
|
|
"resolveJsonModule": true,
|
|
"noEmit": true,
|
|
"noImplicitOverride": true,
|
|
"useUnknownInCatchVariables": false,
|
|
},
|
|
"compileOnSave": true,
|
|
"include": ["packages"],
|
|
"exclude": [
|
|
"packages/*/lib",
|
|
"packages/html-reporter",
|
|
"packages/playwright-ct-react",
|
|
"packages/playwright-ct-solid",
|
|
"packages/playwright-ct-svelte",
|
|
"packages/playwright-ct-vue",
|
|
"packages/playwright-ct-vue2",
|
|
"packages/recorder",
|
|
"packages/trace-viewer",
|
|
"packages/web",
|
|
],
|
|
}
|