supertape 12.12.0 → 12.12.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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2026.05.05, v12.12.1
2
+
3
+ feature:
4
+ - 87d8ebc supertape: loader: jsx: @swc/transform -> oxc-transform
5
+
1
6
  2026.05.04, v12.12.0
2
7
 
3
8
  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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "12.12.0",
3
+ "version": "12.12.1",
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",
@@ -52,7 +52,6 @@
52
52
  "@supertape/formatter-tap": "^4.0.0",
53
53
  "@supertape/formatter-time": "^3.0.0",
54
54
  "@supertape/operator-stub": "^4.0.0",
55
- "@swc/core": "^1.15.33",
56
55
  "cli-progress": "^3.8.2",
57
56
  "flatted": "^3.3.1",
58
57
  "fullstore": "^4.0.0",
@@ -61,6 +60,7 @@
61
60
  "json-with-bigint": "^3.4.4",
62
61
  "just-snake-case": "^3.2.0",
63
62
  "once": "^1.4.0",
63
+ "oxc-transform": "^0.129.0",
64
64
  "resolve": "^1.17.0",
65
65
  "stacktracey": "^2.1.7",
66
66
  "try-to-catch": "^4.0.0",