@lynx-js/react-rsbuild-plugin 0.9.1 → 0.9.2
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 -0
- package/dist/index.js +4 -4
- package/dist/loaders/ignore-css-loader.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @lynx-js/react-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.9.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Avoid entry IIFE in `main-thread.js` ([#206](https://github.com/lynx-family/lynx-stack/pull/206))
|
|
8
|
+
|
|
9
|
+
- Enable CSS minification for scoped CSS. ([#205](https://github.com/lynx-family/lynx-stack/pull/205))
|
|
10
|
+
|
|
11
|
+
- Should generate `.rspeedy/[name]/main-thread.js` instead of `.rspeedy/[name]__main-thread/main-thread.js` ([#180](https://github.com/lynx-family/lynx-stack/pull/180))
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`984a51e`](https://github.com/lynx-family/lynx-stack/commit/984a51e62a42b7f3d2670189f722f0d51f9fce9b), [`5e01cef`](https://github.com/lynx-family/lynx-stack/commit/5e01cef366a20d48b430b11eedbf9e5141f316a2), [`315ba3b`](https://github.com/lynx-family/lynx-stack/commit/315ba3b7fac7872884edcdd5ef3e6d6230bbe115), [`315ba3b`](https://github.com/lynx-family/lynx-stack/commit/315ba3b7fac7872884edcdd5ef3e6d6230bbe115)]:
|
|
14
|
+
- @lynx-js/css-extract-webpack-plugin@0.5.2
|
|
15
|
+
- @lynx-js/react-webpack-plugin@0.6.8
|
|
16
|
+
- @lynx-js/template-webpack-plugin@0.6.5
|
|
17
|
+
- @lynx-js/react-alias-rsbuild-plugin@0.9.2
|
|
18
|
+
- @lynx-js/react-refresh-webpack-plugin@0.3.2
|
|
19
|
+
- @lynx-js/web-webpack-plugin@0.6.2
|
|
20
|
+
|
|
3
21
|
## 0.9.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -111,7 +111,7 @@ function __webpack_require__(moduleId) {
|
|
|
111
111
|
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
112
112
|
})();
|
|
113
113
|
(()=>{
|
|
114
|
-
__webpack_require__.r =
|
|
114
|
+
__webpack_require__.r = (exports)=>{
|
|
115
115
|
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
|
|
116
116
|
value: 'Module'
|
|
117
117
|
});
|
|
@@ -177,7 +177,6 @@ function applyCSS(api, options) {
|
|
|
177
177
|
]
|
|
178
178
|
}
|
|
179
179
|
]).init((_, args)=>new CssExtractPlugin(...args)).end().end();
|
|
180
|
-
if (true !== enableRemoveCSSScope) chain.optimization.minimizers.delete(CHAIN_ID.MINIMIZER.CSS);
|
|
181
180
|
chain.module.when(void 0 === enableRemoveCSSScope, (module)=>module.rule('lynx.css.scoped').test(/\.css$/).resourceQuery({
|
|
182
181
|
and: [
|
|
183
182
|
/cssId/
|
|
@@ -224,7 +223,7 @@ function applyEntry(api, options) {
|
|
|
224
223
|
const { imports } = getChunks(entryName, entryPoint.values());
|
|
225
224
|
const templateFilename = ('object' == typeof config.output?.filename ? config.output.filename.bundle ?? config.output.filename.template : config.output?.filename) ?? '[name].[platform].bundle';
|
|
226
225
|
const mainThreadEntry = `${entryName}__main-thread`;
|
|
227
|
-
const mainThreadName = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].posix.join(isLynx ? DEFAULT_DIST_PATH_INTERMEDIATE : '', `${
|
|
226
|
+
const mainThreadName = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].posix.join(isLynx ? DEFAULT_DIST_PATH_INTERMEDIATE : '', `${entryName}/main-thread.js`);
|
|
228
227
|
const backgroundName = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].posix.join(isLynx ? DEFAULT_DIST_PATH_INTERMEDIATE : '', getBackgroundFilename(entryName, environment.config, isProd));
|
|
229
228
|
const backgroundEntry = entryName;
|
|
230
229
|
mainThreadChunks.push(mainThreadName);
|
|
@@ -303,7 +302,8 @@ function applyEntry(api, options) {
|
|
|
303
302
|
{
|
|
304
303
|
disableCreateSelectorQueryIncompatibleWarning: compat?.disableCreateSelectorQueryIncompatibleWarning ?? false,
|
|
305
304
|
firstScreenSyncTiming,
|
|
306
|
-
mainThreadChunks
|
|
305
|
+
mainThreadChunks,
|
|
306
|
+
experimental_isLazyBundle
|
|
307
307
|
}
|
|
308
308
|
]);
|
|
309
309
|
});
|
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.2",
|
|
4
4
|
"description": "A rsbuild plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -32,29 +32,29 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@lynx-js/css-extract-webpack-plugin": "0.5.
|
|
36
|
-
"@lynx-js/react-alias-rsbuild-plugin": "0.9.
|
|
35
|
+
"@lynx-js/css-extract-webpack-plugin": "0.5.2",
|
|
36
|
+
"@lynx-js/react-alias-rsbuild-plugin": "0.9.2",
|
|
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.8",
|
|
39
39
|
"@lynx-js/runtime-wrapper-webpack-plugin": "0.0.8",
|
|
40
|
-
"@lynx-js/template-webpack-plugin": "0.6.
|
|
40
|
+
"@lynx-js/template-webpack-plugin": "0.6.5",
|
|
41
41
|
"@lynx-js/web-webpack-plugin": "0.6.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@microsoft/api-extractor": "7.51.1",
|
|
45
45
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
46
|
-
"@rsbuild/core": "1.2.
|
|
46
|
+
"@rsbuild/core": "1.2.19",
|
|
47
47
|
"@rsbuild/plugin-sass": "1.2.2",
|
|
48
48
|
"@rsbuild/plugin-typed-css-modules": "1.0.2",
|
|
49
|
-
"@rsbuild/plugin-webpack-swc": "1.0.
|
|
49
|
+
"@rsbuild/plugin-webpack-swc": "1.0.12",
|
|
50
50
|
"@rsbuild/webpack": "1.2.3",
|
|
51
51
|
"tailwindcss": "^3.4.17",
|
|
52
52
|
"type-fest": "^4.37.0",
|
|
53
53
|
"typia": "7.6.4",
|
|
54
54
|
"typia-rspack-plugin": "^1.0.2",
|
|
55
|
-
"@lynx-js/react": "0.105.
|
|
56
|
-
"@lynx-js/
|
|
57
|
-
"@lynx-js/
|
|
55
|
+
"@lynx-js/react": "0.105.2",
|
|
56
|
+
"@lynx-js/rspeedy": "0.8.4",
|
|
57
|
+
"@lynx-js/vitest-setup": "0.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0"
|