@lynx-js/runtime-wrapper-webpack-plugin 0.1.3 → 0.2.0
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @lynx-js/runtime-wrapper-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **BREAKING CHANGE** ([#2803](https://github.com/lynx-family/lynx-stack/pull/2803))
|
|
8
|
+
|
|
9
|
+
Drop webpack support — the plugins now target Rspack only. All public types come from `@rspack/core` instead of `webpack` (e.g. `Compiler`, `Compilation`, `LoaderContext`), and the `webpack` dependency is removed.
|
|
10
|
+
|
|
3
11
|
## 0.1.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BannerPluginArgument, Compiler } from '@rspack/core';
|
|
2
2
|
/**
|
|
3
3
|
* The options for RuntimeWrapperWebpackPluginOptions
|
|
4
4
|
*
|
|
@@ -16,7 +16,9 @@ interface RuntimeWrapperWebpackPluginOptions {
|
|
|
16
16
|
*
|
|
17
17
|
* @public
|
|
18
18
|
*/
|
|
19
|
-
test:
|
|
19
|
+
test: Extract<BannerPluginArgument, {
|
|
20
|
+
banner: unknown;
|
|
21
|
+
}>['test'];
|
|
20
22
|
/**
|
|
21
23
|
* There are two types of banners: script(for app-service) and bundle(for js-render). You can decide to use which banner by the filename.
|
|
22
24
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/runtime-wrapper-webpack-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Use runtime wrapper which allow JavaScript to be load by Lynx.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -35,8 +35,9 @@
|
|
|
35
35
|
"@lynx-js/webpack-runtime-globals": "0.0.6"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@microsoft/api-extractor": "7.
|
|
39
|
-
"
|
|
38
|
+
"@microsoft/api-extractor": "7.58.2",
|
|
39
|
+
"@rspack/core": "2.0.8",
|
|
40
|
+
"@rstest/core": "0.10.5",
|
|
40
41
|
"@lynx-js/test-tools": "0.0.0"
|
|
41
42
|
},
|
|
42
43
|
"engines": {
|
|
@@ -44,6 +45,6 @@
|
|
|
44
45
|
},
|
|
45
46
|
"scripts": {
|
|
46
47
|
"api-extractor": "api-extractor run --verbose",
|
|
47
|
-
"test": "
|
|
48
|
+
"test": "rstest"
|
|
48
49
|
}
|
|
49
50
|
}
|