Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: move tsconfig loader to transform folder (#40097)

Pavel Feldmanc5c7735548de
diff --git a/packages/playwright/src/transform/DEPS.list b/packages/playwright/src/transform/DEPS.list
index 91c6162c12..81b869c83b 100644
--- a/packages/playwright/src/transform/DEPS.list
+++ b/packages/playwright/src/transform/DEPS.list
@@ -1,6 +1,4 @@
[*]
../util.ts
../utilsBundle.ts
-../third_party/pirates.ts
-../third_party/tsconfig-loader.ts
../common/globals.ts
diff --git a/packages/playwright/src/third_party/pirates.ts b/packages/playwright/src/transform/pirates.ts
similarity index 100%
rename from packages/playwright/src/third_party/pirates.ts
rename to packages/playwright/src/transform/pirates.ts
diff --git a/packages/playwright/src/transform/transform.ts b/packages/playwright/src/transform/transform.ts
index e0f573e247..6d29848fc5 100644
--- a/packages/playwright/src/transform/transform.ts
+++ b/packages/playwright/src/transform/transform.ts
@@ -21,15 +21,15 @@ import url from 'url';
import crypto from 'crypto';
-import { loadTsConfig } from '../third_party/tsconfig-loader';
+import { loadTsConfig } from './tsconfig-loader';
import { createFileMatcher, debugTest, fileIsModule, resolveImportSpecifierAfterMapping } from '../util';
import { sourceMapSupport } from '../utilsBundle';
import { belongsToNodeModules, currentFileDepsCollector, getFromCompilationCache, installSourceMapSupport } from './compilationCache';
-import { addHook } from '../third_party/pirates';
+import { addHook } from './pirates';
import type { BabelPlugin, BabelTransformFunction } from './babelBundle';
import type { Location } from '../../types/testReporter';
-import type { LoadedTsConfig } from '../third_party/tsconfig-loader';
+import type { LoadedTsConfig } from './tsconfig-loader';
import type { Matcher } from '../util';
diff --git a/packages/playwright/src/third_party/tsconfig-loader.ts b/packages/playwright/src/transform/tsconfig-loader.ts
similarity index 100%
rename from packages/playwright/src/third_party/tsconfig-loader.ts
rename to packages/playwright/src/transform/tsconfig-loader.ts