@octanejs/rsbuild-plugin 0.1.47 → 0.1.48
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 +12 -0
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -133,3 +133,15 @@ The package forwards normalized `compiler.renderers` registry, filename-rule,
|
|
|
133
133
|
and renderer-boundary metadata through the same Rspack compiler path used by
|
|
134
134
|
Vite and direct compilation. This enables the experimental universal client
|
|
135
135
|
target; a concrete Lynx runtime and cross-thread transport remain future work.
|
|
136
|
+
|
|
137
|
+
## Scoped CSS
|
|
138
|
+
|
|
139
|
+
Scoped `<style>` blocks compile to `injectStyle(hash, css)` calls — one per
|
|
140
|
+
style scope, in lexical order — emitted as module-level statements in the
|
|
141
|
+
`web` environment and inside the component body per request in the `node`
|
|
142
|
+
SSR environment, where the render collects them into the response's
|
|
143
|
+
`<style data-octane>` tags. A theme (`export const theme = <style>…</style>`)
|
|
144
|
+
is an ordinary module value, so importing it injects its sheet ahead of the
|
|
145
|
+
importer's own scopes. There is no virtual CSS module and no CSS HMR path:
|
|
146
|
+
editing a block re-evaluates the module like any other source change. No
|
|
147
|
+
CSS-loader configuration is involved.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/rsbuild-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.48",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@octanejs/app-core": "0.0.
|
|
52
|
-
"@octanejs/rspack-plugin": "0.1.
|
|
51
|
+
"@octanejs/app-core": "0.0.49",
|
|
52
|
+
"@octanejs/rspack-plugin": "0.1.48"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@rsbuild/core": "^2.0.0",
|
|
@@ -61,8 +61,7 @@
|
|
|
61
61
|
"@rspack/core": "^2.1.4",
|
|
62
62
|
"@types/node": "^24.13.3",
|
|
63
63
|
"playwright": "^1.61.1",
|
|
64
|
-
"type-fest": "^5.8.0",
|
|
65
64
|
"vitest": "^4.1.10",
|
|
66
|
-
"octane": "0.2.
|
|
65
|
+
"octane": "0.2.4"
|
|
67
66
|
}
|
|
68
67
|
}
|