@octanejs/rspack-plugin 0.2.8 → 0.2.9

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 CHANGED
@@ -7,7 +7,7 @@ integration lives in `@octanejs/rsbuild-plugin`.
7
7
  ## Install
8
8
 
9
9
  ```sh
10
- pnpm add octane @tsrx/oxc@0.20.0
10
+ pnpm add octane @tsrx/oxc@0.23.0
11
11
  pnpm add -D @rspack/core @octanejs/rspack-plugin
12
12
  ```
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/rspack-plugin",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
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.16.0"
48
+ "octane": "^0.17.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@rspack/core": "^2.1.4",
@@ -53,7 +53,7 @@
53
53
  "@types/node": "^24.13.3",
54
54
  "css-loader": "6.11.0",
55
55
  "jsdom": "^30.0.1",
56
- "octane": "0.16.0",
56
+ "octane": "0.17.0",
57
57
  "vitest": "^4.1.10"
58
58
  },
59
59
  "scripts": {
package/src/loader.js CHANGED
@@ -127,6 +127,9 @@ export default function octaneLoader(source, inputSourceMap) {
127
127
  root,
128
128
  profile,
129
129
  ...(options.strong === undefined ? null : { strong: options.strong }),
130
+ ...(options.strongDependencies === undefined
131
+ ? null
132
+ : { strongDependencies: options.strongDependencies }),
130
133
  ...(options.knownAttributeSpreads === undefined
131
134
  ? null
132
135
  : { knownAttributeSpreads: options.knownAttributeSpreads }),
package/src/plugin.js CHANGED
@@ -185,6 +185,9 @@ function createDiscoveryCompiler(options, root, profile, specialization) {
185
185
  root,
186
186
  profile,
187
187
  ...(options.strong === undefined ? null : { strong: options.strong }),
188
+ ...(options.strongDependencies === undefined
189
+ ? null
190
+ : { strongDependencies: options.strongDependencies }),
188
191
  ...(options.knownAttributeSpreads === undefined
189
192
  ? null
190
193
  : { knownAttributeSpreads: options.knownAttributeSpreads }),
@@ -553,6 +556,7 @@ export class OctaneRspackPlugin {
553
556
  dev,
554
557
  profile,
555
558
  strong: this.options.strong === true,
559
+ strongDependencies: this.options.strongDependencies,
556
560
  knownAttributeSpreads: this.options.knownAttributeSpreads,
557
561
  exclude: this.options.exclude ?? [],
558
562
  renderers: this.options.renderers?.signature,
@@ -603,6 +607,9 @@ export class OctaneRspackPlugin {
603
607
  environment,
604
608
  profile,
605
609
  ...(this.options.strong === undefined ? null : { strong: this.options.strong }),
610
+ ...(this.options.strongDependencies === undefined
611
+ ? null
612
+ : { strongDependencies: this.options.strongDependencies }),
606
613
  ...(this.options.knownAttributeSpreads === undefined
607
614
  ? null
608
615
  : { knownAttributeSpreads: this.options.knownAttributeSpreads }),
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
+ 'strongDependencies',
44
45
  'knownAttributeSpreads',
45
46
  'exclude',
46
47
  'renderers',
@@ -267,6 +268,9 @@ function normalizeOptions(value, plugin) {
267
268
  ...(options.dev === undefined ? null : { dev: options.dev }),
268
269
  ...(options.profile === undefined ? null : { profile: options.profile }),
269
270
  ...(options.strong === undefined ? null : { strong: options.strong }),
271
+ ...(options.strongDependencies === undefined
272
+ ? null
273
+ : { strongDependencies: options.strongDependencies }),
270
274
  ...(options.knownAttributeSpreads === undefined
271
275
  ? null
272
276
  : { knownAttributeSpreads: options.knownAttributeSpreads }),