@lynx-js/react-webpack-plugin 0.6.13 → 0.6.15
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/lib/ReactWebpackPlugin.d.ts +1 -15
- package/lib/ReactWebpackPlugin.js +1 -1
- package/lib/index.d.ts +2 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @lynx-js/react-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.6.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix lazy bundle build failed on Rspeedy v0.9.8 (with `output.iife: true`). ([#972](https://github.com/lynx-family/lynx-stack/pull/972))
|
|
8
|
+
|
|
9
|
+
## 0.6.14
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Support `@lynx-js/template-webpack-plugin` v0.7.0. ([#880](https://github.com/lynx-family/lynx-stack/pull/880))
|
|
14
|
+
|
|
15
|
+
- Support `@lynx-js/react` v0.109.0. ([#840](https://github.com/lynx-family/lynx-stack/pull/840))
|
|
16
|
+
|
|
3
17
|
## 0.6.13
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import type { Compiler } from '@rspack/core';
|
|
2
|
+
import type { ExtractStrConfig } from '@lynx-js/react/transform';
|
|
2
3
|
import { LAYERS } from './layer.js';
|
|
3
|
-
/**
|
|
4
|
-
* The options for extractStr.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export interface ExtractStrConfig {
|
|
9
|
-
/**
|
|
10
|
-
* The minimum length of string literals to be extracted.
|
|
11
|
-
*
|
|
12
|
-
* @defaultValue `20`
|
|
13
|
-
*
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
strLength: number;
|
|
17
|
-
}
|
|
18
4
|
/**
|
|
19
5
|
* The options for ReactWebpackPlugin
|
|
20
6
|
*
|
|
@@ -181,7 +181,7 @@ class ReactWebpackPlugin {
|
|
|
181
181
|
compilation.updateAsset(encodeData.lepusCode.root.name, (old) => new ConcatSource(`\
|
|
182
182
|
(function (globDynamicComponentEntry) {
|
|
183
183
|
const module = { exports: {} }
|
|
184
|
-
const exports = module.exports
|
|
184
|
+
const exports = module.exports;
|
|
185
185
|
`, old, `
|
|
186
186
|
;return module.exports
|
|
187
187
|
})`));
|
package/lib/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* A webpack plugin to integrate webpack with ReactLynx.
|
|
5
5
|
*/
|
|
6
6
|
export { ReactWebpackPlugin } from './ReactWebpackPlugin.js';
|
|
7
|
-
export type { ReactWebpackPluginOptions
|
|
7
|
+
export type { ReactWebpackPluginOptions } from './ReactWebpackPlugin.js';
|
|
8
|
+
export type { ExtractStrConfig } from '@lynx-js/react/transform';
|
|
8
9
|
export { LAYERS } from './layer.js';
|
|
9
10
|
export type { ReactLoaderOptions } from './loaders/options.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-webpack-plugin",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.15",
|
|
4
4
|
"description": "A webpack plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"@lynx-js/webpack-runtime-globals": "0.0.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@microsoft/api-extractor": "7.52.
|
|
41
|
-
"@rspack/core": "1.3.
|
|
40
|
+
"@microsoft/api-extractor": "7.52.8",
|
|
41
|
+
"@rspack/core": "1.3.11",
|
|
42
42
|
"css-loader": "^7.1.2",
|
|
43
43
|
"swc-loader": "^0.2.6",
|
|
44
|
-
"webpack": "^5.99.
|
|
45
|
-
"@lynx-js/css-extract-webpack-plugin": "0.5.
|
|
46
|
-
"@lynx-js/react": "0.
|
|
47
|
-
"@lynx-js/template-webpack-plugin": "0.
|
|
44
|
+
"webpack": "^5.99.9",
|
|
45
|
+
"@lynx-js/css-extract-webpack-plugin": "0.5.4",
|
|
46
|
+
"@lynx-js/react": "0.109.1",
|
|
47
|
+
"@lynx-js/template-webpack-plugin": "0.7.1",
|
|
48
48
|
"@lynx-js/test-tools": "0.0.0",
|
|
49
49
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0 || ^0.106.0 || ^0.107.0 || ^0.108.0",
|
|
53
|
-
"@lynx-js/template-webpack-plugin": "^0.4.0 || ^0.5.0 || ^0.6.0"
|
|
52
|
+
"@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0 || ^0.106.0 || ^0.107.0 || ^0.108.0 || ^0.109.0",
|
|
53
|
+
"@lynx-js/template-webpack-plugin": "^0.4.0 || ^0.5.0 || ^0.6.0 || ^0.7.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"@lynx-js/react": {
|