supertape 12.12.0 → 12.12.2

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/ChangeLog CHANGED
@@ -1,3 +1,13 @@
1
+ 2026.05.05, v12.12.2
2
+
3
+ fix:
4
+ - 6eb1de0 supertape: exports: jsx
5
+
6
+ 2026.05.05, v12.12.1
7
+
8
+ feature:
9
+ - 87d8ebc supertape: loader: jsx: @swc/transform -> oxc-transform
10
+
1
11
  2026.05.04, v12.12.0
2
12
 
3
13
  feature:
package/lib/loader/jsx.js CHANGED
@@ -1,4 +1,4 @@
1
- import {transformSync} from '@swc/core';
1
+ import {transformSync} from 'oxc-transform';
2
2
 
3
3
  export function resolve(specifier, context, nextResolve) {
4
4
  if (specifier.endsWith('.jsx'))
@@ -11,7 +11,10 @@ export function resolve(specifier, context, nextResolve) {
11
11
  }
12
12
 
13
13
  export function load(url, context, nextLoad) {
14
- if (url.endsWith('.jsx')) {
14
+ if (url.endsWith('.jsx') || url.endsWith('.js')) {
15
+ if (url.includes('node_modules'))
16
+ return nextLoad(url, context);
17
+
15
18
  const {source} = nextLoad(url, {
16
19
  format: 'module',
17
20
  });
@@ -27,17 +30,9 @@ export function load(url, context, nextLoad) {
27
30
  }
28
31
 
29
32
  export function jsxToJs(source) {
30
- const {code} = transformSync(source, {
31
- jsc: {
32
- parser: {
33
- syntax: 'ecmascript',
34
- jsx: true,
35
- },
36
- transform: {
37
- react: {
38
- runtime: 'automatic',
39
- },
40
- },
33
+ const {code} = transformSync('__supertape.js', source, {
34
+ jsx: {
35
+ runtime: 'automatic',
41
36
  },
42
37
  });
43
38
 
@@ -0,0 +1,4 @@
1
+ import {registerHooks} from 'node:module';
2
+ import * as jsxLoaderUrl from './jsx.js';
3
+
4
+ registerHooks(jsxLoaderUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "12.12.0",
3
+ "version": "12.12.2",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "📼 Supertape simplest high speed test runner with superpowers",
6
6
  "homepage": "http://github.com/coderaiser/supertape",
@@ -11,7 +11,8 @@
11
11
  "./bin/supertape": "./bin/tracer.js",
12
12
  "./cli": "./lib/cli.js",
13
13
  "./exit-codes": "./lib/exit-codes.js",
14
- "./css": "./lib/loader/register.js",
14
+ "./css": "./lib/loader/register-css.js",
15
+ "./jsx": "./lib/loader/register-jsx.js",
15
16
  "./env": "./lib/env/index.js"
16
17
  },
17
18
  "imports": {
@@ -52,7 +53,6 @@
52
53
  "@supertape/formatter-tap": "^4.0.0",
53
54
  "@supertape/formatter-time": "^3.0.0",
54
55
  "@supertape/operator-stub": "^4.0.0",
55
- "@swc/core": "^1.15.33",
56
56
  "cli-progress": "^3.8.2",
57
57
  "flatted": "^3.3.1",
58
58
  "fullstore": "^4.0.0",
@@ -61,6 +61,7 @@
61
61
  "json-with-bigint": "^3.4.4",
62
62
  "just-snake-case": "^3.2.0",
63
63
  "once": "^1.4.0",
64
+ "oxc-transform": "^0.129.0",
64
65
  "resolve": "^1.17.0",
65
66
  "stacktracey": "^2.1.7",
66
67
  "try-to-catch": "^4.0.0",
File without changes