@lynx-js/react-rsbuild-plugin 0.10.11 → 0.10.12
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 +14 -0
- package/dist/index.js +11 -10
- package/package.json +10 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @lynx-js/react-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.10.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- `output.inlineScripts` defaults to `false` when chunkSplit strategy is not `'all-in-one'` ([#1504](https://github.com/lynx-family/lynx-stack/pull/1504))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`51a0b19`](https://github.com/lynx-family/lynx-stack/commit/51a0b19078cb18c13f4f3e2ca4f471aa4ddeaa05), [`b391ef5`](https://github.com/lynx-family/lynx-stack/commit/b391ef5c6dd0a0945e68b38f40807df7e1ef672e)]:
|
|
10
|
+
- @lynx-js/template-webpack-plugin@0.8.4
|
|
11
|
+
- @lynx-js/css-extract-webpack-plugin@0.6.2
|
|
12
|
+
- @lynx-js/react-alias-rsbuild-plugin@0.10.12
|
|
13
|
+
- @lynx-js/use-sync-external-store@1.5.0
|
|
14
|
+
- @lynx-js/react-refresh-webpack-plugin@0.3.4
|
|
15
|
+
- @lynx-js/react-webpack-plugin@0.6.19
|
|
16
|
+
|
|
3
17
|
## 0.10.11
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { CSSPlugins, LynxEncodePlugin, LynxTemplatePlugin, WebEncodePlugin } fro
|
|
|
7
7
|
import { RuntimeWrapperWebpackPlugin } from "@lynx-js/runtime-wrapper-webpack-plugin";
|
|
8
8
|
import { ReactRefreshRspackPlugin, ReactRefreshWebpackPlugin } from "@lynx-js/react-refresh-webpack-plugin";
|
|
9
9
|
var __webpack_modules__ = {
|
|
10
|
-
"../../../node_modules/.pnpm/typia@9.
|
|
10
|
+
"../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/internal/_accessExpressionAsString.js": function(__unused_webpack_module, exports) {
|
|
11
11
|
exports._accessExpressionAsString = void 0;
|
|
12
12
|
const _accessExpressionAsString = (str)=>variable(str) ? `.${str}` : `[${JSON.stringify(str)}]`;
|
|
13
13
|
exports._accessExpressionAsString = _accessExpressionAsString;
|
|
@@ -52,9 +52,9 @@ var __webpack_modules__ = {
|
|
|
52
52
|
"with"
|
|
53
53
|
]);
|
|
54
54
|
},
|
|
55
|
-
"../../../node_modules/.pnpm/typia@9.
|
|
55
|
+
"../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/internal/_assertGuard.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
56
56
|
exports._assertGuard = void 0;
|
|
57
|
-
const TypeGuardError_1 = __webpack_require__("../../../node_modules/.pnpm/typia@9.
|
|
57
|
+
const TypeGuardError_1 = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/TypeGuardError.mjs");
|
|
58
58
|
const _assertGuard = (exceptionable, props, factory)=>{
|
|
59
59
|
if (true === exceptionable) if (factory) throw factory(props);
|
|
60
60
|
else throw new TypeGuardError_1.TypeGuardError(props);
|
|
@@ -71,7 +71,7 @@ var __webpack_modules__ = {
|
|
|
71
71
|
"node:url": function(module) {
|
|
72
72
|
module.exports = __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__;
|
|
73
73
|
},
|
|
74
|
-
"../../../node_modules/.pnpm/typia@9.
|
|
74
|
+
"../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/TypeGuardError.mjs": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
75
75
|
__webpack_require__.r(__webpack_exports__);
|
|
76
76
|
__webpack_require__.d(__webpack_exports__, {
|
|
77
77
|
TypeGuardError: ()=>TypeGuardError
|
|
@@ -359,10 +359,13 @@ function applyEntry(api, options) {
|
|
|
359
359
|
}
|
|
360
360
|
]).end();
|
|
361
361
|
});
|
|
362
|
+
const rsbuildConfig = api.getRsbuildConfig();
|
|
363
|
+
const userConfig = api.getRsbuildConfig('original');
|
|
364
|
+
const enableChunkSplitting = rsbuildConfig.performance?.chunkSplit?.strategy !== 'all-in-one';
|
|
362
365
|
let finalFirstScreenSyncTiming = firstScreenSyncTiming;
|
|
363
366
|
if (isLynx) {
|
|
364
367
|
let inlineScripts;
|
|
365
|
-
inlineScripts = experimental_isLazyBundle ? true : environment.config.output?.inlineScripts ??
|
|
368
|
+
inlineScripts = experimental_isLazyBundle ? true : environment.config.output?.inlineScripts ?? !enableChunkSplitting;
|
|
366
369
|
if (true !== inlineScripts) finalFirstScreenSyncTiming = 'jsReady';
|
|
367
370
|
chain.plugin(PLUGIN_NAME_RUNTIME_WRAPPER).use(RuntimeWrapperWebpackPlugin, [
|
|
368
371
|
{
|
|
@@ -389,10 +392,8 @@ function applyEntry(api, options) {
|
|
|
389
392
|
]).end();
|
|
390
393
|
}
|
|
391
394
|
if (isWeb) chain.plugin(PLUGIN_NAME_WEB).use(WebEncodePlugin, []).end();
|
|
392
|
-
const rsbuildConfig = api.getRsbuildConfig();
|
|
393
|
-
const userConfig = api.getRsbuildConfig('original');
|
|
394
395
|
let extractStr = originalExtractStr;
|
|
395
|
-
if (
|
|
396
|
+
if (enableChunkSplitting && originalExtractStr) {
|
|
396
397
|
logger.warn('`extractStr` is changed to `false` because it is only supported in `all-in-one` chunkSplit strategy, please set `performance.chunkSplit.strategy` to `all-in-one` to use `extractStr.`');
|
|
397
398
|
extractStr = false;
|
|
398
399
|
}
|
|
@@ -611,8 +612,8 @@ function applyUseSyncExternalStore(api) {
|
|
|
611
612
|
})));
|
|
612
613
|
});
|
|
613
614
|
}
|
|
614
|
-
var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@9.
|
|
615
|
-
var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@9.
|
|
615
|
+
var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/internal/_accessExpressionAsString.js");
|
|
616
|
+
var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/internal/_assertGuard.js");
|
|
616
617
|
const validateConfig = (()=>{
|
|
617
618
|
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.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) && _io4(input.shake, _exceptionable)) && (void 0 === input.defineDCE || "object" == typeof input.defineDCE && null !== input.defineDCE && false === Array.isArray(input.defineDCE) && _io5(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) && _io7(input.extractStr, _exceptionable)) && (void 0 === input.experimental_isLazyBundle || "boolean" == typeof input.experimental_isLazyBundle) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
618
619
|
if ([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-rsbuild-plugin",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.12",
|
|
4
4
|
"description": "A rsbuild plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@lynx-js/css-extract-webpack-plugin": "0.6.
|
|
36
|
-
"@lynx-js/react-alias-rsbuild-plugin": "0.10.
|
|
35
|
+
"@lynx-js/css-extract-webpack-plugin": "0.6.2",
|
|
36
|
+
"@lynx-js/react-alias-rsbuild-plugin": "0.10.12",
|
|
37
37
|
"@lynx-js/react-refresh-webpack-plugin": "0.3.4",
|
|
38
38
|
"@lynx-js/react-webpack-plugin": "0.6.19",
|
|
39
39
|
"@lynx-js/runtime-wrapper-webpack-plugin": "0.1.2",
|
|
40
|
-
"@lynx-js/template-webpack-plugin": "0.8.
|
|
40
|
+
"@lynx-js/template-webpack-plugin": "0.8.4",
|
|
41
41
|
"@lynx-js/use-sync-external-store": "1.5.0",
|
|
42
42
|
"background-only": "^0.0.1"
|
|
43
43
|
},
|
|
@@ -45,16 +45,15 @@
|
|
|
45
45
|
"@microsoft/api-extractor": "7.52.10",
|
|
46
46
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
47
47
|
"@rsbuild/core": "1.4.15",
|
|
48
|
-
"@rsbuild/plugin-sass": "1.3.
|
|
49
|
-
"@rsbuild/plugin-typed-css-modules": "1.0.
|
|
50
|
-
"@rsbuild/plugin-webpack-swc": "1.1.1",
|
|
48
|
+
"@rsbuild/plugin-sass": "1.3.5",
|
|
49
|
+
"@rsbuild/plugin-typed-css-modules": "1.0.3",
|
|
51
50
|
"tailwindcss": "^3.4.17",
|
|
52
51
|
"type-fest": "^4.41.0",
|
|
53
|
-
"typia": "9.
|
|
54
|
-
"typia-rspack-plugin": "2.2.
|
|
55
|
-
"@lynx-js/react": "0.112.
|
|
52
|
+
"typia": "9.7.1",
|
|
53
|
+
"typia-rspack-plugin": "2.2.1",
|
|
54
|
+
"@lynx-js/react": "0.112.3",
|
|
56
55
|
"@lynx-js/react-transform": "0.2.0",
|
|
57
|
-
"@lynx-js/rspeedy": "0.10.
|
|
56
|
+
"@lynx-js/rspeedy": "0.10.7",
|
|
58
57
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
59
58
|
},
|
|
60
59
|
"peerDependencies": {
|