@octanejs/rspack-plugin 0.2.4 → 0.2.6
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 +5 -2
- package/package.json +3 -3
- package/src/plugin.js +2 -0
package/README.md
CHANGED
|
@@ -66,8 +66,11 @@ shape and `use*` spelling do not disable that optimization:
|
|
|
66
66
|
new OctaneRspackPlugin({ strong: true });
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
Strong compiles `.tsrx`, `.ts`, and `.js` modules, so convert application
|
|
70
|
+
`.tsx` and `.jsx` modules to `.tsrx` first; the build reports
|
|
71
|
+
`OCTANE_STRONG_TSX_MODULE` for any it reaches. Dependencies keep their existing
|
|
72
|
+
compatibility behavior. Any `.tsrx`, `.ts`, or `.js` module can opt in on its
|
|
73
|
+
own by putting `"use strong"` before its imports. Strong analysis is
|
|
71
74
|
bounded: unknown calls are assumed pure, so live accessors must remain in a
|
|
72
75
|
compatibility-mode consumer or receive an actual snapshot.
|
|
73
76
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/rspack-plugin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
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.
|
|
48
|
+
"octane": "^0.14.1"
|
|
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.
|
|
56
|
+
"octane": "0.14.1",
|
|
57
57
|
"vitest": "^4.1.10"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
package/src/plugin.js
CHANGED
|
@@ -623,6 +623,7 @@ export class OctaneRspackPlugin {
|
|
|
623
623
|
};
|
|
624
624
|
compiler.options.module.rules.push({
|
|
625
625
|
test: OCTANE_RULE,
|
|
626
|
+
dependency: { not: 'url' },
|
|
626
627
|
type: 'javascript/auto',
|
|
627
628
|
enforce: 'pre',
|
|
628
629
|
use:
|
|
@@ -645,6 +646,7 @@ export class OctaneRspackPlugin {
|
|
|
645
646
|
if (this.options.transpile !== false) {
|
|
646
647
|
compiler.options.module.rules.push({
|
|
647
648
|
test: TYPESCRIPT_RULE,
|
|
649
|
+
dependency: { not: 'url' },
|
|
648
650
|
type: 'javascript/auto',
|
|
649
651
|
use: [{ loader: 'builtin:swc-loader', options: { detectSyntax: 'auto' } }],
|
|
650
652
|
});
|