@lynx-js/react-rsbuild-plugin-canary 0.10.8-canary-20250716-7decd3e5 → 0.10.8-canary-20250716-a862edb0
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 +8 -3
- package/dist/index.js +7 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
# @lynx-js/react-rsbuild-plugin
|
|
2
2
|
|
|
3
|
-
## 0.10.8-canary-
|
|
3
|
+
## 0.10.8-canary-20250716075123-a862edb0d635286b6624b7dbfe0665fe739bca09
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Supports extractStr for large JSON ([#1230](https://github.com/lynx-family/lynx-stack/pull/1230))
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
|
|
9
|
+
- Change `extractStr` to `false` when `performance.chunkSplit.strategy` is not `all-in-one`. ([#1251](https://github.com/lynx-family/lynx-stack/pull/1251))
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`cb7feb6`](https://github.com/lynx-family/lynx-stack/commit/cb7feb6e8cc9f4b83ac3147bd3e5a82059caa06a)]:
|
|
12
|
+
- @lynx-js/template-webpack-plugin@0.8.2-canary-20250716075123-a862edb0d635286b6624b7dbfe0665fe739bca09
|
|
13
|
+
- @lynx-js/css-extract-webpack-plugin@0.6.0
|
|
14
|
+
- @lynx-js/react-webpack-plugin@0.6.18
|
|
15
|
+
- @lynx-js/react-alias-rsbuild-plugin@0.10.8-canary-20250716075123-a862edb0d635286b6624b7dbfe0665fe739bca09
|
|
11
16
|
|
|
12
17
|
## 0.10.7
|
|
13
18
|
|
package/dist/index.js
CHANGED
|
@@ -287,8 +287,8 @@ const DEFAULT_DIST_PATH_INTERMEDIATE = '.rspeedy';
|
|
|
287
287
|
const DEFAULT_FILENAME_HASH = '.[contenthash:8]';
|
|
288
288
|
const EMPTY_HASH = '';
|
|
289
289
|
function applyEntry(api, options) {
|
|
290
|
-
const { compat, customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear, enableAccessibilityElement, enableICU, enableCSSInheritance, enableCSSInvalidation, enableCSSSelector, enableNewGesture, enableParallelElement, enableRemoveCSSScope, firstScreenSyncTiming, enableSSR, pipelineSchedulerConfig, removeDescendantSelectorScope, targetSdkVersion, extractStr, experimental_isLazyBundle } = options;
|
|
291
|
-
const { config } = api.useExposed(Symbol.for('rspeedy.api'));
|
|
290
|
+
const { compat, customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear, enableAccessibilityElement, enableICU, enableCSSInheritance, enableCSSInvalidation, enableCSSSelector, enableNewGesture, enableParallelElement, enableRemoveCSSScope, firstScreenSyncTiming, enableSSR, pipelineSchedulerConfig, removeDescendantSelectorScope, targetSdkVersion, extractStr: originalExtractStr, experimental_isLazyBundle } = options;
|
|
291
|
+
const { config, logger } = api.useExposed(Symbol.for('rspeedy.api'));
|
|
292
292
|
api.modifyBundlerChain((chain, { environment, isDev, isProd })=>{
|
|
293
293
|
const entries = chain.entryPoints.entries() ?? {};
|
|
294
294
|
const isLynx = 'lynx' === environment.name;
|
|
@@ -390,6 +390,11 @@ function applyEntry(api, options) {
|
|
|
390
390
|
}
|
|
391
391
|
if (isWeb) chain.plugin(PLUGIN_NAME_WEB).use(WebEncodePlugin, []).end();
|
|
392
392
|
const rsbuildConfig = api.getRsbuildConfig();
|
|
393
|
+
let extractStr = originalExtractStr;
|
|
394
|
+
if (rsbuildConfig.performance?.chunkSplit?.strategy !== 'all-in-one' && originalExtractStr) {
|
|
395
|
+
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.`');
|
|
396
|
+
extractStr = false;
|
|
397
|
+
}
|
|
393
398
|
chain.plugin(PLUGIN_NAME_REACT).after(PLUGIN_NAME_TEMPLATE).use(ReactWebpackPlugin, [
|
|
394
399
|
{
|
|
395
400
|
disableCreateSelectorQueryIncompatibleWarning: compat?.disableCreateSelectorQueryIncompatibleWarning ?? false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-rsbuild-plugin-canary",
|
|
3
|
-
"version": "0.10.8-canary-20250716-
|
|
3
|
+
"version": "0.10.8-canary-20250716-a862edb0",
|
|
4
4
|
"description": "A rsbuild plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.0",
|
|
36
|
-
"@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.8-canary-20250716-
|
|
36
|
+
"@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.8-canary-20250716-a862edb0",
|
|
37
37
|
"@lynx-js/react-refresh-webpack-plugin": "npm:@lynx-js/react-refresh-webpack-plugin-canary@0.3.4",
|
|
38
38
|
"@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.6.18",
|
|
39
39
|
"@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.2",
|
|
40
|
-
"@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.
|
|
40
|
+
"@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.2-canary-20250716-a862edb0",
|
|
41
41
|
"@lynx-js/use-sync-external-store": "npm:@lynx-js/use-sync-external-store-canary@1.5.0",
|
|
42
42
|
"background-only": "npm:background-only-canary@0.0.1"
|
|
43
43
|
},
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@lynx-js/react": "npm:@lynx-js/react-canary@0.111.1",
|
|
58
58
|
"@lynx-js/react-transform": "0.2.0",
|
|
59
59
|
"@lynx-js/vitest-setup": "0.0.0",
|
|
60
|
-
"@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.2-canary-20250716-
|
|
60
|
+
"@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.2-canary-20250716-a862edb0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@lynx-js/react": "*"
|