@wyw-in-js/turbopack-loader 2.0.0-alpha.0 → 2.0.0-alpha.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/README.md +9 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,6 +4,15 @@ Turbopack-compatible loader for WyW-in-JS.
|
|
|
4
4
|
|
|
5
5
|
This package is designed to be used via Next.js `turbopack.rules`.
|
|
6
6
|
|
|
7
|
+
## Eval resolver modes
|
|
8
|
+
|
|
9
|
+
`eval.resolver: 'native'` and the native step of `eval.resolver: 'hybrid'` use `oxc-resolver` with automatic
|
|
10
|
+
`tsconfig.json` discovery.
|
|
11
|
+
|
|
12
|
+
When this loader is configured through `@wyw-in-js/nextjs`, string aliases from `turbopack.resolveAlias` or
|
|
13
|
+
`experimental.turbo.resolveAlias` are forwarded into native resolver options. Direct `turbopack.rules` usage should mirror
|
|
14
|
+
Turbopack-only aliases in `oxcOptions.resolver.alias` or use `hybrid` so the bundler fallback can resolve them.
|
|
15
|
+
|
|
7
16
|
## Output strategy
|
|
8
17
|
|
|
9
18
|
When a file produces CSS, the loader:
|
|
@@ -11,4 +20,3 @@ When a file produces CSS, the loader:
|
|
|
11
20
|
- writes `*.wyw-in-js.module.css` next to the source file (only if content changed, atomically);
|
|
12
21
|
- injects `import './<file>.wyw-in-js.module.css'` into the transformed module;
|
|
13
22
|
- wraps selectors in `:global(...)` so Next's CSS Modules pipeline does not rename WyW-generated class names.
|
|
14
|
-
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wyw-in-js/turbopack-loader",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@wyw-in-js/shared": "2.0.0-alpha.
|
|
7
|
-
"@wyw-in-js/transform": "2.0.0-alpha.
|
|
6
|
+
"@wyw-in-js/shared": "2.0.0-alpha.1",
|
|
7
|
+
"@wyw-in-js/transform": "2.0.0-alpha.1"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@types/node": "^22.0.0",
|