@playwright/experimental-ct-core 1.42.0 → 1.42.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.
@@ -58,7 +58,7 @@ var _default = exports.default = (0, _babelBundle.declare)(api => {
58
58
  const ext = _path.default.extname(importNode.source.value);
59
59
 
60
60
  // Convert all non-JS imports into refs.
61
- if (!allJsExtensions.has(ext)) {
61
+ if (artifactExtensions.has(ext)) {
62
62
  for (const specifier of importNode.specifiers) {
63
63
  if (t.isImportNamespaceSpecifier(specifier)) continue;
64
64
  const {
@@ -135,4 +135,14 @@ function importInfo(importNode, specifier, filename) {
135
135
  info: result
136
136
  };
137
137
  }
138
- const allJsExtensions = new Set(['.js', '.jsx', '.cjs', '.mjs', '.ts', '.tsx', '.cts', '.mts', '']);
138
+ const artifactExtensions = new Set([
139
+ // Frameworks
140
+ '.vue', '.svelte',
141
+ // Images
142
+ '.jpg', '.jpeg', '.png', '.gif', '.svg', '.bmp', '.webp', '.ico',
143
+ // CSS
144
+ '.css',
145
+ // Fonts
146
+ '.woff', '.woff2', '.ttf', '.otf', '.eot',
147
+ // Other assets
148
+ '.json']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playwright/experimental-ct-core",
3
- "version": "1.42.0",
3
+ "version": "1.42.1",
4
4
  "description": "Playwright Component Testing Helpers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,9 +26,9 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "playwright-core": "1.42.0",
29
+ "playwright-core": "1.42.1",
30
30
  "vite": "^5.0.12",
31
- "playwright": "1.42.0"
31
+ "playwright": "1.42.1"
32
32
  },
33
33
  "bin": {
34
34
  "playwright": "cli.js"
@@ -14,8 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import type { ImportRegistry } from '../src/injected/importRegistry';
18
-
19
17
  type JsonPrimitive = string | number | boolean | null;
20
18
  type JsonValue = JsonPrimitive | JsonObject | JsonArray;
21
19
  type JsonArray = JsonValue[];