@playwright/experimental-ct-core 1.47.0 → 1.47.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/vitePlugin.js CHANGED
@@ -222,7 +222,7 @@ function vitePlugin(registerSource, templateDir, buildInfo, importInfos, depsCol
222
222
  },
223
223
  async writeBundle() {
224
224
  for (const importInfo of importInfos.values()) {
225
- const importPath = (0, _transform.resolveHook)(importInfo.filename, importInfo.importSource, true);
225
+ const importPath = (0, _transform.resolveHook)(importInfo.filename, importInfo.importSource);
226
226
  if (!importPath) continue;
227
227
  const deps = new Set();
228
228
  const id = await moduleResolver(importPath);
package/lib/viteUtils.js CHANGED
@@ -137,12 +137,12 @@ async function populateComponentsFromTests(componentRegistry, componentsByImport
137
137
  const importInfos = await (0, _compilationCache.getUserData)('playwright-ct-core');
138
138
  for (const [file, importList] of importInfos) {
139
139
  for (const importInfo of importList) componentRegistry.set(importInfo.id, importInfo);
140
- if (componentsByImportingFile) componentsByImportingFile.set(file, importList.map(i => (0, _transform.resolveHook)(i.filename, i.importSource, true)).filter(Boolean));
140
+ if (componentsByImportingFile) componentsByImportingFile.set(file, importList.map(i => (0, _transform.resolveHook)(i.filename, i.importSource)).filter(Boolean));
141
141
  }
142
142
  }
143
143
  function hasJSComponents(components) {
144
144
  for (const component of components) {
145
- const importPath = (0, _transform.resolveHook)(component.filename, component.importSource, true);
145
+ const importPath = (0, _transform.resolveHook)(component.filename, component.importSource);
146
146
  const extname = importPath ? _path.default.extname(importPath) : '';
147
147
  if (extname === '.js' || importPath && !extname && _fs.default.existsSync(importPath + '.js')) return true;
148
148
  }
@@ -170,7 +170,7 @@ function transformIndexFile(id, content, templateDir, registerSource, importInfo
170
170
  const lines = [content, ''];
171
171
  lines.push(registerSource);
172
172
  for (const value of importInfos.values()) {
173
- const importPath = (0, _transform.resolveHook)(value.filename, value.importSource, true) || value.importSource;
173
+ const importPath = (0, _transform.resolveHook)(value.filename, value.importSource) || value.importSource;
174
174
  lines.push(`const ${value.id} = () => import('${importPath === null || importPath === void 0 ? void 0 : importPath.replaceAll(_path.default.sep, '/')}').then((mod) => mod.${value.remoteName || 'default'});`);
175
175
  }
176
176
  lines.push(`__pwRegistry.initialize({ ${[...importInfos.keys()].join(',\n ')} });`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playwright/experimental-ct-core",
3
- "version": "1.47.0",
3
+ "version": "1.47.1",
4
4
  "description": "Playwright Component Testing Helpers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,8 +26,8 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "playwright-core": "1.47.0",
29
+ "playwright-core": "1.47.1",
30
30
  "vite": "^5.2.8",
31
- "playwright": "1.47.0"
31
+ "playwright": "1.47.1"
32
32
  }
33
33
  }