@octanejs/rspack-plugin 0.1.43 → 0.1.44
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/package.json +3 -3
- package/src/loader.js +1 -0
- package/src/plugin.js +5 -0
- package/src/shared.js +3 -0
- package/types/index.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/rspack-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.44",
|
|
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.49"
|
|
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.49"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"test": "vitest run --config vitest.config.js"
|
package/src/loader.js
CHANGED
|
@@ -118,6 +118,7 @@ export default function octaneLoader(source, inputSourceMap) {
|
|
|
118
118
|
root,
|
|
119
119
|
profile,
|
|
120
120
|
...(options.strong === undefined ? null : { strong: options.strong }),
|
|
121
|
+
...(options.nativeReads === undefined ? null : { nativeReads: options.nativeReads }),
|
|
121
122
|
...(options.exclude === undefined ? null : { exclude: options.exclude }),
|
|
122
123
|
...(compilerOptions.renderers === undefined
|
|
123
124
|
? null
|
package/src/plugin.js
CHANGED
|
@@ -177,6 +177,7 @@ function createDiscoveryCompiler(options, root, profile, specialization) {
|
|
|
177
177
|
root,
|
|
178
178
|
profile,
|
|
179
179
|
...(options.strong === undefined ? null : { strong: options.strong }),
|
|
180
|
+
...(options.nativeReads === undefined ? null : { nativeReads: options.nativeReads }),
|
|
180
181
|
...(options.exclude === undefined ? null : { exclude: options.exclude }),
|
|
181
182
|
...(renderers === undefined ? null : { renderers }),
|
|
182
183
|
...(universalRuntime === undefined ? null : { universalRuntime }),
|
|
@@ -367,6 +368,7 @@ export class OctaneRspackPlugin {
|
|
|
367
368
|
dev,
|
|
368
369
|
profile,
|
|
369
370
|
strong: this.options.strong === true,
|
|
371
|
+
nativeReads: this.options.nativeReads === true,
|
|
370
372
|
exclude: this.options.exclude ?? [],
|
|
371
373
|
renderers: this.options.renderers?.signature,
|
|
372
374
|
runtime: this.options.runtime,
|
|
@@ -407,6 +409,9 @@ export class OctaneRspackPlugin {
|
|
|
407
409
|
environment,
|
|
408
410
|
profile,
|
|
409
411
|
...(this.options.strong === undefined ? null : { strong: this.options.strong }),
|
|
412
|
+
...(this.options.nativeReads === undefined
|
|
413
|
+
? null
|
|
414
|
+
: { nativeReads: this.options.nativeReads }),
|
|
410
415
|
...(this.options.hmr === undefined ? null : { hmr: this.options.hmr }),
|
|
411
416
|
...(this.options.dev === undefined ? null : { dev: this.options.dev }),
|
|
412
417
|
...(this.options.exclude === undefined ? null : { exclude: this.options.exclude }),
|
package/src/shared.js
CHANGED
|
@@ -41,6 +41,7 @@ const LOADER_OPTION_KEYS = new Set([
|
|
|
41
41
|
'dev',
|
|
42
42
|
'profile',
|
|
43
43
|
'strong',
|
|
44
|
+
'nativeReads',
|
|
44
45
|
'exclude',
|
|
45
46
|
'renderers',
|
|
46
47
|
'requireDirective',
|
|
@@ -208,6 +209,7 @@ function normalizeOptions(value, plugin) {
|
|
|
208
209
|
assertBooleanOption(options, 'dev');
|
|
209
210
|
assertBooleanOption(options, 'profile');
|
|
210
211
|
assertBooleanOption(options, 'strong');
|
|
212
|
+
assertBooleanOption(options, 'nativeReads');
|
|
211
213
|
assertBooleanOption(options, 'requireDirective');
|
|
212
214
|
if (
|
|
213
215
|
options.exclude !== undefined &&
|
|
@@ -239,6 +241,7 @@ function normalizeOptions(value, plugin) {
|
|
|
239
241
|
...(options.dev === undefined ? null : { dev: options.dev }),
|
|
240
242
|
...(options.profile === undefined ? null : { profile: options.profile }),
|
|
241
243
|
...(options.strong === undefined ? null : { strong: options.strong }),
|
|
244
|
+
...(options.nativeReads === undefined ? null : { nativeReads: options.nativeReads }),
|
|
242
245
|
...(options.exclude === undefined ? null : { exclude: [...options.exclude] }),
|
|
243
246
|
...(renderers === undefined ? null : { renderers }),
|
|
244
247
|
...(universalRuntime === undefined ? null : { universalRuntime }),
|
package/types/index.d.ts
CHANGED
|
@@ -144,6 +144,8 @@ export interface OctaneRspackLoaderOptions {
|
|
|
144
144
|
* @default false
|
|
145
145
|
*/
|
|
146
146
|
strong?: boolean;
|
|
147
|
+
/** Experimental native signal reads in DOM client/server render scopes. */
|
|
148
|
+
nativeReads?: boolean;
|
|
147
149
|
/**
|
|
148
150
|
* Path fragments excluded from the plain `.ts`/`.js` hook-slot pass. With
|
|
149
151
|
* `requireDirective`, excluded paths are exempt from Octane ownership
|