@lynx-js/react-rsbuild-plugin 0.10.10 → 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 +24 -0
- package/dist/{525.js → 860.js} +1 -1
- package/dist/index.js +13 -12
- package/package.json +11 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
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
|
+
|
|
17
|
+
## 0.10.11
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`c8ce6aa`](https://github.com/lynx-family/lynx-stack/commit/c8ce6aa33abf42a7954e1e345b3a36febe76d048)]:
|
|
22
|
+
- @lynx-js/react-alias-rsbuild-plugin@0.10.11
|
|
23
|
+
- @lynx-js/use-sync-external-store@1.5.0
|
|
24
|
+
- @lynx-js/react-refresh-webpack-plugin@0.3.4
|
|
25
|
+
- @lynx-js/react-webpack-plugin@0.6.19
|
|
26
|
+
|
|
3
27
|
## 0.10.10
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/{525.js → 860.js}
RENAMED
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
|
|
@@ -190,7 +190,7 @@ const ALIAS_BACKGROUND_ONLY_BACKGROUND = 'react:alias-background-only-background
|
|
|
190
190
|
function applyBackgroundOnly(api) {
|
|
191
191
|
api.modifyBundlerChain(async (chain)=>{
|
|
192
192
|
const __dirname = external_node_path_["default"].dirname((0, external_node_url_.fileURLToPath)(import.meta.url));
|
|
193
|
-
const { resolve, resolveMainThread } = await __webpack_require__.e("
|
|
193
|
+
const { resolve, resolveMainThread } = await __webpack_require__.e("860").then(__webpack_require__.bind(__webpack_require__, "./src/resolve.ts"));
|
|
194
194
|
const [backgroundOnly, backgroundOnlyMainThread] = await Promise.all([
|
|
195
195
|
resolve('background-only'),
|
|
196
196
|
resolveMainThread('background-only')
|
|
@@ -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
|
}
|
|
@@ -599,7 +600,7 @@ function applySWC(api) {
|
|
|
599
600
|
}
|
|
600
601
|
function applyUseSyncExternalStore(api) {
|
|
601
602
|
api.modifyBundlerChain(async (chain)=>{
|
|
602
|
-
const { resolve } = await __webpack_require__.e("
|
|
603
|
+
const { resolve } = await __webpack_require__.e("860").then(__webpack_require__.bind(__webpack_require__, "./src/resolve.ts"));
|
|
603
604
|
const useSyncExternalStoreEntries = [
|
|
604
605
|
'use-sync-external-store',
|
|
605
606
|
'use-sync-external-store/with-selector',
|
|
@@ -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,31 +32,28 @@
|
|
|
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
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@microsoft/api-extractor": "7.52.10",
|
|
46
46
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
47
|
-
"@rsbuild/core": "1.4.
|
|
48
|
-
"@rsbuild/plugin-sass": "1.3.
|
|
49
|
-
"@rsbuild/plugin-typed-css-modules": "1.0.
|
|
50
|
-
"@rsbuild/plugin-webpack-swc": "1.1.1",
|
|
51
|
-
"@rsbuild/webpack": "1.3.2",
|
|
52
|
-
"@samchon/openapi": "4.3.2",
|
|
47
|
+
"@rsbuild/core": "1.4.15",
|
|
48
|
+
"@rsbuild/plugin-sass": "1.3.5",
|
|
49
|
+
"@rsbuild/plugin-typed-css-modules": "1.0.3",
|
|
53
50
|
"tailwindcss": "^3.4.17",
|
|
54
51
|
"type-fest": "^4.41.0",
|
|
55
|
-
"typia": "9.
|
|
56
|
-
"typia-rspack-plugin": "2.1
|
|
57
|
-
"@lynx-js/react": "0.112.
|
|
52
|
+
"typia": "9.7.1",
|
|
53
|
+
"typia-rspack-plugin": "2.2.1",
|
|
54
|
+
"@lynx-js/react": "0.112.3",
|
|
58
55
|
"@lynx-js/react-transform": "0.2.0",
|
|
59
|
-
"@lynx-js/rspeedy": "0.10.
|
|
56
|
+
"@lynx-js/rspeedy": "0.10.7",
|
|
60
57
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
61
58
|
},
|
|
62
59
|
"peerDependencies": {
|