@lynx-js/react-rsbuild-plugin-canary 0.10.12-canary-20250815-405a9170 → 0.10.13-canary-20250820-f0d483ca
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 +18 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +56 -62
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
# @lynx-js/react-rsbuild-plugin
|
|
2
2
|
|
|
3
|
-
## 0.10.
|
|
3
|
+
## 0.10.13-canary-20250820072701-f0d483ca2d3e208a618727590061b0babc075737
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support using multiple times in different environments. ([#1498](https://github.com/lynx-family/lynx-stack/pull/1498))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`f0d483c`](https://github.com/lynx-family/lynx-stack/commit/f0d483ca2d3e208a618727590061b0babc075737), [`a753712`](https://github.com/lynx-family/lynx-stack/commit/a7537125cf7a9bd25ba2d94872496f8783310079), [`e0c0b3a`](https://github.com/lynx-family/lynx-stack/commit/e0c0b3a0109d90f3a8cee6825d70c59e36f968be)]:
|
|
10
|
+
- @lynx-js/react-alias-rsbuild-plugin@0.10.13-canary-20250820072701-f0d483ca2d3e208a618727590061b0babc075737
|
|
11
|
+
- @lynx-js/react@0.112.4-canary-20250820072701-f0d483ca2d3e208a618727590061b0babc075737
|
|
12
|
+
- @lynx-js/use-sync-external-store@1.5.0
|
|
13
|
+
- @lynx-js/react-refresh-webpack-plugin@0.3.4
|
|
14
|
+
- @lynx-js/react-webpack-plugin@0.6.19
|
|
15
|
+
|
|
16
|
+
## 0.10.12
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
6
19
|
|
|
7
20
|
- `output.inlineScripts` defaults to `false` when chunkSplit strategy is not `'all-in-one'` ([#1504](https://github.com/lynx-family/lynx-stack/pull/1504))
|
|
8
21
|
|
|
9
|
-
- Updated dependencies [[`
|
|
10
|
-
- @lynx-js/
|
|
11
|
-
- @lynx-js/
|
|
12
|
-
- @lynx-js/
|
|
13
|
-
- @lynx-js/react-alias-rsbuild-plugin@0.10.12-canary-20250815130727-405a9170442ae32603b7687549b49ab4b34aff92
|
|
22
|
+
- Updated dependencies [[`51a0b19`](https://github.com/lynx-family/lynx-stack/commit/51a0b19078cb18c13f4f3e2ca4f471aa4ddeaa05), [`b391ef5`](https://github.com/lynx-family/lynx-stack/commit/b391ef5c6dd0a0945e68b38f40807df7e1ef672e)]:
|
|
23
|
+
- @lynx-js/template-webpack-plugin@0.8.4
|
|
24
|
+
- @lynx-js/css-extract-webpack-plugin@0.6.2
|
|
25
|
+
- @lynx-js/react-alias-rsbuild-plugin@0.10.12
|
|
14
26
|
- @lynx-js/use-sync-external-store@1.5.0
|
|
15
27
|
- @lynx-js/react-refresh-webpack-plugin@0.3.4
|
|
16
28
|
- @lynx-js/react-webpack-plugin@0.6.19
|
package/dist/index.d.ts
CHANGED
|
@@ -426,7 +426,7 @@ export { LAYERS }
|
|
|
426
426
|
*
|
|
427
427
|
* @public
|
|
428
428
|
*/
|
|
429
|
-
export declare function pluginReactLynx(userOptions?: PluginReactLynxOptions): RsbuildPlugin;
|
|
429
|
+
export declare function pluginReactLynx(userOptions?: PluginReactLynxOptions): RsbuildPlugin[];
|
|
430
430
|
|
|
431
431
|
/**
|
|
432
432
|
* Options of {@link pluginReactLynx}
|
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
|
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { LAYERS, ReactWebpackPlugin } from "@lynx-js/react-webpack-plugin";
|
|
6
|
-
import { CSSPlugins, LynxEncodePlugin, LynxTemplatePlugin, WebEncodePlugin } from "@lynx-js/template-webpack-plugin";
|
|
7
6
|
import { RuntimeWrapperWebpackPlugin } from "@lynx-js/runtime-wrapper-webpack-plugin";
|
|
7
|
+
import { LynxEncodePlugin, LynxTemplatePlugin, WebEncodePlugin } from "@lynx-js/template-webpack-plugin";
|
|
8
8
|
import { ReactRefreshRspackPlugin, ReactRefreshWebpackPlugin } from "@lynx-js/react-refresh-webpack-plugin";
|
|
9
9
|
var __webpack_modules__ = {
|
|
10
10
|
"../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/internal/_accessExpressionAsString.js": function(__unused_webpack_module, exports) {
|
|
@@ -175,13 +175,6 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
175
175
|
};
|
|
176
176
|
})();
|
|
177
177
|
var react_alias_rsbuild_plugin_ = __webpack_require__("@lynx-js/react-alias-rsbuild-plugin");
|
|
178
|
-
function applyAlias(api, lazy) {
|
|
179
|
-
return (0, react_alias_rsbuild_plugin_.pluginReactAlias)({
|
|
180
|
-
LAYERS: LAYERS,
|
|
181
|
-
lazy,
|
|
182
|
-
rootPath: api.context.rootPath
|
|
183
|
-
}).setup(api);
|
|
184
|
-
}
|
|
185
178
|
var external_node_path_ = __webpack_require__("node:path");
|
|
186
179
|
var external_node_url_ = __webpack_require__("node:url");
|
|
187
180
|
const DETECT_IMPORT_ERROR = 'react:detect-import-error';
|
|
@@ -248,9 +241,7 @@ function applyCSS(api, options) {
|
|
|
248
241
|
enableCSSSelector,
|
|
249
242
|
enableCSSInvalidation,
|
|
250
243
|
targetSdkVersion,
|
|
251
|
-
cssPlugins: [
|
|
252
|
-
CSSPlugins.parserPlugins.removeFunctionWhiteSpace()
|
|
253
|
-
]
|
|
244
|
+
cssPlugins: []
|
|
254
245
|
}
|
|
255
246
|
]).init((_, args)=>new CssExtractPlugin(...args)).end().end();
|
|
256
247
|
chain.module.when(void 0 === enableRemoveCSSScope, (module)=>module.rule('lynx.css.scoped').test(/\.css$/).resourceQuery({
|
|
@@ -353,9 +344,7 @@ function applyEntry(api, options) {
|
|
|
353
344
|
removeDescendantSelectorScope,
|
|
354
345
|
targetSdkVersion,
|
|
355
346
|
experimental_isLazyBundle,
|
|
356
|
-
cssPlugins: [
|
|
357
|
-
CSSPlugins.parserPlugins.removeFunctionWhiteSpace()
|
|
358
|
-
]
|
|
347
|
+
cssPlugins: []
|
|
359
348
|
}
|
|
360
349
|
]).end();
|
|
361
350
|
});
|
|
@@ -1221,56 +1210,61 @@ function pluginReactLynx(userOptions) {
|
|
|
1221
1210
|
targetSdkVersion: engineVersion,
|
|
1222
1211
|
engineVersion
|
|
1223
1212
|
});
|
|
1224
|
-
return
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1213
|
+
return [
|
|
1214
|
+
(0, react_alias_rsbuild_plugin_.pluginReactAlias)({
|
|
1215
|
+
lazy: resolvedOptions.experimental_isLazyBundle,
|
|
1216
|
+
LAYERS: LAYERS
|
|
1217
|
+
}),
|
|
1218
|
+
{
|
|
1219
|
+
name: 'lynx:react',
|
|
1220
|
+
pre: [
|
|
1221
|
+
'lynx:rsbuild:plugin-api'
|
|
1222
|
+
],
|
|
1223
|
+
setup (api) {
|
|
1224
|
+
applyCSS(api, resolvedOptions);
|
|
1225
|
+
applyEntry(api, resolvedOptions);
|
|
1226
|
+
applyBackgroundOnly(api);
|
|
1227
|
+
applyGenerator(api, resolvedOptions);
|
|
1228
|
+
applyLoaders(api, resolvedOptions);
|
|
1229
|
+
applyRefresh(api);
|
|
1230
|
+
applySplitChunksRule(api);
|
|
1231
|
+
applySWC(api);
|
|
1232
|
+
applyUseSyncExternalStore(api);
|
|
1233
|
+
api.modifyRsbuildConfig((config, { mergeRsbuildConfig })=>{
|
|
1234
|
+
const userConfig = api.getRsbuildConfig('original');
|
|
1235
|
+
if (void 0 === userConfig.source?.include) config = mergeRsbuildConfig(config, {
|
|
1236
|
+
source: {
|
|
1237
|
+
include: [
|
|
1238
|
+
/\.(?:js|mjs|cjs)$/
|
|
1239
|
+
]
|
|
1240
|
+
}
|
|
1241
|
+
});
|
|
1242
|
+
if (void 0 === userConfig.output?.inlineScripts) config = mergeRsbuildConfig(config, {
|
|
1243
|
+
output: {
|
|
1244
|
+
inlineScripts: true
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
config = mergeRsbuildConfig({
|
|
1248
|
+
tools: {
|
|
1249
|
+
rspack: {
|
|
1250
|
+
output: {
|
|
1251
|
+
iife: false
|
|
1252
|
+
}
|
|
1259
1253
|
}
|
|
1260
1254
|
}
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
}
|
|
1255
|
+
}, config);
|
|
1256
|
+
return config;
|
|
1257
|
+
});
|
|
1258
|
+
if (resolvedOptions.experimental_isLazyBundle) applyLazy(api);
|
|
1259
|
+
const rspeedyAPIs = api.useExposed(Symbol.for('rspeedy.api'));
|
|
1260
|
+
const require = createRequire(import.meta.url);
|
|
1261
|
+
const { version } = require('../package.json');
|
|
1262
|
+
rspeedyAPIs.debug(()=>{
|
|
1263
|
+
const webpackPluginPath = require.resolve('@lynx-js/react-webpack-plugin');
|
|
1264
|
+
return `Using @lynx-js/react-webpack-plugin v${version} at ${webpackPluginPath}`;
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1273
1267
|
}
|
|
1274
|
-
|
|
1268
|
+
];
|
|
1275
1269
|
}
|
|
1276
1270
|
export { LAYERS, pluginReactLynx };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-rsbuild-plugin-canary",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.13-canary-20250820-f0d483ca",
|
|
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": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.2
|
|
36
|
-
"@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.
|
|
35
|
+
"@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.2",
|
|
36
|
+
"@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.13-canary-20250820-f0d483ca",
|
|
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.19",
|
|
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.4
|
|
40
|
+
"@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.4",
|
|
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
|
},
|
|
@@ -47,14 +47,16 @@
|
|
|
47
47
|
"@rsbuild/core": "1.4.15",
|
|
48
48
|
"@rsbuild/plugin-sass": "1.3.5",
|
|
49
49
|
"@rsbuild/plugin-typed-css-modules": "1.0.3",
|
|
50
|
+
"rsbuild-plugin-arethetypeswrong": "0.1.1",
|
|
51
|
+
"rsbuild-plugin-publint": "0.3.3",
|
|
50
52
|
"tailwindcss": "^3.4.17",
|
|
51
53
|
"type-fest": "^4.41.0",
|
|
52
54
|
"typia": "9.7.1",
|
|
53
55
|
"typia-rspack-plugin": "2.2.1",
|
|
56
|
+
"@lynx-js/react": "npm:@lynx-js/react-canary@0.112.4-canary-20250820-f0d483ca",
|
|
54
57
|
"@lynx-js/react-transform": "0.2.0",
|
|
55
|
-
"@lynx-js/
|
|
56
|
-
"@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.
|
|
57
|
-
"@lynx-js/vitest-setup": "0.0.0"
|
|
58
|
+
"@lynx-js/vitest-setup": "0.0.0",
|
|
59
|
+
"@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.8-canary-20250820-f0d483ca"
|
|
58
60
|
},
|
|
59
61
|
"peerDependencies": {
|
|
60
62
|
"@lynx-js/react": "*"
|