@lynx-js/react-rsbuild-plugin 0.9.6 → 0.9.7
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/CHANGELOG.md +30 -0
- package/dist/index.js +21 -21
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @lynx-js/react-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.9.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support overriding SWC configuration. ([#563](https://github.com/lynx-family/lynx-stack/pull/563))
|
|
8
|
+
|
|
9
|
+
Now you can override configuration like `useDefineForClassFields` using `tools.swc`.
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
13
|
+
|
|
14
|
+
export default defineConfig({
|
|
15
|
+
tools: {
|
|
16
|
+
swc: {
|
|
17
|
+
jsc: {
|
|
18
|
+
transform: {
|
|
19
|
+
useDefineForClassFields: true,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
})
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [[`f1ca29b`](https://github.com/lynx-family/lynx-stack/commit/f1ca29bd766377dd46583f15e1e75bca447699cd)]:
|
|
28
|
+
- @lynx-js/react-webpack-plugin@0.6.11
|
|
29
|
+
- @lynx-js/react-alias-rsbuild-plugin@0.9.7
|
|
30
|
+
- @lynx-js/react-refresh-webpack-plugin@0.3.2
|
|
31
|
+
- @lynx-js/web-webpack-plugin@0.6.5
|
|
32
|
+
|
|
3
33
|
## 0.9.6
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_runtime_wrapper_webpack_plugin_27
|
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_web_webpack_plugin_6ba19e5a__ from "@lynx-js/web-webpack-plugin";
|
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_react_refresh_webpack_plugin_a01c5e97__ from "@lynx-js/react-refresh-webpack-plugin";
|
|
10
10
|
var __webpack_modules__ = {
|
|
11
|
-
"../../../node_modules/.pnpm/typia@9.
|
|
11
|
+
"../../../node_modules/.pnpm/typia@9.1.1_@samchon+openapi@4.1.0_typescript@5.8.3/node_modules/typia/lib/internal/_accessExpressionAsString.js": function(__unused_webpack_module, exports) {
|
|
12
12
|
exports._accessExpressionAsString = void 0;
|
|
13
13
|
const _accessExpressionAsString = (str)=>variable(str) ? `.${str}` : `[${JSON.stringify(str)}]`;
|
|
14
14
|
exports._accessExpressionAsString = _accessExpressionAsString;
|
|
@@ -53,9 +53,9 @@ var __webpack_modules__ = {
|
|
|
53
53
|
"with"
|
|
54
54
|
]);
|
|
55
55
|
},
|
|
56
|
-
"../../../node_modules/.pnpm/typia@9.
|
|
56
|
+
"../../../node_modules/.pnpm/typia@9.1.1_@samchon+openapi@4.1.0_typescript@5.8.3/node_modules/typia/lib/internal/_assertGuard.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
57
57
|
exports._assertGuard = void 0;
|
|
58
|
-
const TypeGuardError_1 = __webpack_require__("../../../node_modules/.pnpm/typia@9.
|
|
58
|
+
const TypeGuardError_1 = __webpack_require__("../../../node_modules/.pnpm/typia@9.1.1_@samchon+openapi@4.1.0_typescript@5.8.3/node_modules/typia/lib/TypeGuardError.mjs");
|
|
59
59
|
const _assertGuard = (exceptionable, props, factory)=>{
|
|
60
60
|
if (true === exceptionable) if (factory) throw factory(props);
|
|
61
61
|
else throw new TypeGuardError_1.TypeGuardError(props);
|
|
@@ -63,7 +63,7 @@ var __webpack_modules__ = {
|
|
|
63
63
|
};
|
|
64
64
|
exports._assertGuard = _assertGuard;
|
|
65
65
|
},
|
|
66
|
-
"../../../node_modules/.pnpm/typia@9.
|
|
66
|
+
"../../../node_modules/.pnpm/typia@9.1.1_@samchon+openapi@4.1.0_typescript@5.8.3/node_modules/typia/lib/TypeGuardError.mjs": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
67
67
|
__webpack_require__.r(__webpack_exports__);
|
|
68
68
|
__webpack_require__.d(__webpack_exports__, {
|
|
69
69
|
TypeGuardError: ()=>TypeGuardError
|
|
@@ -479,28 +479,28 @@ const applySplitChunksRule = (api)=>{
|
|
|
479
479
|
});
|
|
480
480
|
};
|
|
481
481
|
function applySWC(api) {
|
|
482
|
-
api.modifyRsbuildConfig((config, { mergeRsbuildConfig })=>mergeRsbuildConfig(
|
|
482
|
+
api.modifyRsbuildConfig((config, { mergeRsbuildConfig })=>mergeRsbuildConfig({
|
|
483
483
|
tools: {
|
|
484
|
-
swc
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
484
|
+
swc: {
|
|
485
|
+
jsc: {
|
|
486
|
+
transform: {
|
|
487
|
+
useDefineForClassFields: false,
|
|
488
|
+
optimizer: {
|
|
489
|
+
simplify: true
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
parser: {
|
|
493
|
+
syntax: "typescript",
|
|
494
|
+
tsx: false,
|
|
495
|
+
decorators: true
|
|
496
|
+
}
|
|
496
497
|
}
|
|
497
|
-
return config;
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
}));
|
|
500
|
+
}, config));
|
|
501
501
|
}
|
|
502
|
-
var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@9.
|
|
503
|
-
var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@9.
|
|
502
|
+
var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@9.1.1_@samchon+openapi@4.1.0_typescript@5.8.3/node_modules/typia/lib/internal/_accessExpressionAsString.js");
|
|
503
|
+
var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@9.1.1_@samchon+openapi@4.1.0_typescript@5.8.3/node_modules/typia/lib/internal/_assertGuard.js");
|
|
504
504
|
const validateConfig = (()=>{
|
|
505
505
|
const _io0 = (input, _exceptionable = true)=>(void 0 === input.compat || "object" == typeof input.compat && null !== input.compat && false === Array.isArray(input.compat) && _io1(input.compat, _exceptionable)) && (void 0 === input.customCSSInheritanceList || Array.isArray(input.customCSSInheritanceList) && input.customCSSInheritanceList.every((elem, _index1)=>"string" == typeof elem)) && (void 0 === input.debugInfoOutside || "boolean" == typeof input.debugInfoOutside) && (void 0 === input.defaultDisplayLinear || "boolean" == typeof input.defaultDisplayLinear) && (void 0 === input.enableAccessibilityElement || "boolean" == typeof input.enableAccessibilityElement) && (void 0 === input.enableICU || "boolean" == typeof input.enableICU) && (void 0 === input.enableCSSInheritance || "boolean" == typeof input.enableCSSInheritance) && (void 0 === input.enableCSSInvalidation || "boolean" == typeof input.enableCSSInvalidation) && (void 0 === input.enableCSSSelector || "boolean" == typeof input.enableCSSSelector) && (void 0 === input.enableNewGesture || "boolean" == typeof input.enableNewGesture) && (void 0 === input.enableParallelElement || "boolean" == typeof input.enableParallelElement) && (void 0 === input.enableRemoveCSSScope || "boolean" == typeof input.enableRemoveCSSScope) && (void 0 === input.firstScreenSyncTiming || "immediately" === input.firstScreenSyncTiming || "jsReady" === input.firstScreenSyncTiming) && (void 0 === input.enableSSR || "boolean" == typeof input.enableSSR) && (void 0 === input.jsx || "object" == typeof input.jsx && null !== input.jsx && false === Array.isArray(input.jsx) && _io4(input.jsx, _exceptionable)) && (void 0 === input.pipelineSchedulerConfig || "number" == typeof input.pipelineSchedulerConfig) && (void 0 === input.removeDescendantSelectorScope || "boolean" == typeof input.removeDescendantSelectorScope) && (void 0 === input.shake || "object" == typeof input.shake && null !== input.shake && false === Array.isArray(input.shake) && _io5(input.shake, _exceptionable)) && (void 0 === input.defineDCE || "object" == typeof input.defineDCE && null !== input.defineDCE && false === Array.isArray(input.defineDCE) && _io6(input.defineDCE, _exceptionable)) && (void 0 === input.engineVersion || "string" == typeof input.engineVersion) && (void 0 === input.targetSdkVersion || "string" == typeof input.targetSdkVersion) && null !== input.extractStr && (void 0 === input.extractStr || "boolean" == typeof input.extractStr || "object" == typeof input.extractStr && null !== input.extractStr && false === Array.isArray(input.extractStr) && _io8(input.extractStr, _exceptionable)) && (void 0 === input.experimental_isLazyBundle || "boolean" == typeof input.experimental_isLazyBundle) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
506
506
|
if ([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-rsbuild-plugin",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.7",
|
|
4
4
|
"description": "A rsbuild plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -33,28 +33,28 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@lynx-js/css-extract-webpack-plugin": "0.5.3",
|
|
36
|
-
"@lynx-js/react-alias-rsbuild-plugin": "0.9.
|
|
36
|
+
"@lynx-js/react-alias-rsbuild-plugin": "0.9.7",
|
|
37
37
|
"@lynx-js/react-refresh-webpack-plugin": "0.3.2",
|
|
38
|
-
"@lynx-js/react-webpack-plugin": "0.6.
|
|
38
|
+
"@lynx-js/react-webpack-plugin": "0.6.11",
|
|
39
39
|
"@lynx-js/runtime-wrapper-webpack-plugin": "0.0.9",
|
|
40
40
|
"@lynx-js/template-webpack-plugin": "0.6.9",
|
|
41
|
-
"@lynx-js/web-webpack-plugin": "0.6.
|
|
41
|
+
"@lynx-js/web-webpack-plugin": "0.6.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@microsoft/api-extractor": "7.52.3",
|
|
45
45
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
46
|
-
"@rsbuild/core": "1.3.
|
|
46
|
+
"@rsbuild/core": "1.3.8",
|
|
47
47
|
"@rsbuild/plugin-sass": "1.3.1",
|
|
48
48
|
"@rsbuild/plugin-typed-css-modules": "1.0.2",
|
|
49
49
|
"@rsbuild/plugin-webpack-swc": "1.1.0",
|
|
50
50
|
"@rsbuild/webpack": "1.3.0",
|
|
51
|
-
"@samchon/openapi": "4.
|
|
51
|
+
"@samchon/openapi": "4.1.0",
|
|
52
52
|
"tailwindcss": "^3.4.17",
|
|
53
53
|
"type-fest": "^4.39.1",
|
|
54
|
-
"typia": "9.
|
|
55
|
-
"typia-rspack-plugin": "2.0.
|
|
56
|
-
"@lynx-js/react": "0.106.
|
|
57
|
-
"@lynx-js/rspeedy": "0.9.
|
|
54
|
+
"typia": "9.1.1",
|
|
55
|
+
"typia-rspack-plugin": "2.0.1",
|
|
56
|
+
"@lynx-js/react": "0.106.5",
|
|
57
|
+
"@lynx-js/rspeedy": "0.9.2",
|
|
58
58
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|