@octanejs/rspack-plugin 0.1.41 → 0.1.43
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 +10 -4
- package/package.json +3 -3
- package/types/index.d.ts +3 -2
package/README.md
CHANGED
|
@@ -55,15 +55,21 @@ Source maps, module layers, compiler metadata, and watched package manifests
|
|
|
55
55
|
are preserved in both modes. Worker startup has a fixed cost, so very small
|
|
56
56
|
builds may be faster with `parallel: false`.
|
|
57
57
|
|
|
58
|
-
Set `strong: true` to
|
|
59
|
-
|
|
58
|
+
Set `strong: true` to opt application code into Strong mode's immutable
|
|
59
|
+
render-snapshot and pure-render contract. The compiler rejects detectable state,
|
|
60
|
+
ref, Effect Event, snapshot-mutation, and nondeterministic-render violations;
|
|
61
|
+
production client builds condition memoization on the author's assertion that
|
|
62
|
+
every user-authored render operation is pure for its witnessed inputs. Callee
|
|
63
|
+
shape and `use*` spelling do not disable that optimization:
|
|
60
64
|
|
|
61
65
|
```js
|
|
62
66
|
new OctaneRspackPlugin({ strong: true });
|
|
63
67
|
```
|
|
64
68
|
|
|
65
|
-
Dependencies keep their existing behavior. Any module can opt in
|
|
66
|
-
putting `"use strong"` before its imports.
|
|
69
|
+
Dependencies keep their existing compatibility behavior. Any module can opt in
|
|
70
|
+
on its own by putting `"use strong"` before its imports. Strong analysis is
|
|
71
|
+
bounded: unknown calls are assumed pure, so live accessors must remain in a
|
|
72
|
+
compatibility-mode consumer or receive an actual snapshot.
|
|
67
73
|
|
|
68
74
|
The experimental `renderers` option accepts the same declarative registry,
|
|
69
75
|
filename rules, and module/export boundary metadata as `compiler.renderers` in
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/rspack-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@rspack/core": "^2.0.0",
|
|
48
|
-
"octane": "0.1.
|
|
48
|
+
"octane": "0.1.48"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@rspack/core": "^2.1.4",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"css-loader": "6.11.0",
|
|
55
55
|
"jsdom": "^30.0.1",
|
|
56
56
|
"vitest": "^4.1.10",
|
|
57
|
-
"octane": "0.1.
|
|
57
|
+
"octane": "0.1.48"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"test": "vitest run --config vitest.config.js"
|
package/types/index.d.ts
CHANGED
|
@@ -138,8 +138,9 @@ export interface OctaneRspackLoaderOptions {
|
|
|
138
138
|
/** Emit client profiling metadata and enable the profiling runtime. Default `false`. */
|
|
139
139
|
profile?: boolean;
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
142
|
-
*
|
|
141
|
+
* Assert pure immutable-snapshot renders and enable Strong-mode compiler
|
|
142
|
+
* checks for project-owned modules. Dependencies remain compatible unless
|
|
143
|
+
* their own module begins with `"use strong"`.
|
|
143
144
|
* @default false
|
|
144
145
|
*/
|
|
145
146
|
strong?: boolean;
|