@lynx-js/vanilla-rsbuild-plugin 0.1.0 → 0.1.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # `@lynx-js/vanilla-rsbuild-plugin`
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Add `@lynx-js/rspeedy` `^0.18.0` to the peer dependency range. ([#3971](https://github.com/lynx-family/lynx-stack/pull/3971))
8
+ - Updated dependencies [[`b5241dd`](https://github.com/lynx-family/lynx-stack/commit/b5241dd52770e97cb9bc5f08d9aa3bdbf7be9ce8), [`c5809d0`](https://github.com/lynx-family/lynx-stack/commit/c5809d097d6cd3c29ba8a140288fce0846b60b2c), [`4c453b9`](https://github.com/lynx-family/lynx-stack/commit/4c453b9ed1c58860f96cde9c4e91722f5d145470)]:
9
+ - @lynx-js/template-webpack-plugin@0.16.2
10
+
11
+ ## 0.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [[`b900a78`](https://github.com/lynx-family/lynx-stack/commit/b900a78a43914adf2aae60849e2d6433be5eb797)]:
16
+ - @lynx-js/template-webpack-plugin@0.16.1
17
+
3
18
  ## 0.1.0
4
19
 
5
20
  ### Minor Changes
package/README.md CHANGED
@@ -2,14 +2,16 @@
2
2
 
3
3
  An Rsbuild plugin for building Vanilla Lynx applications directly with Element PAPI.
4
4
 
5
- ## Usage with Rspeedy
5
+ ## Usage
6
6
 
7
7
  ```ts
8
- import { defineConfig } from '@lynx-js/rspeedy'
8
+ import { pluginLynx } from '@lynx-js/rsbuild-plugin'
9
9
  import { pluginVanillaLynx } from '@lynx-js/vanilla-rsbuild-plugin'
10
+ import { defineConfig } from '@rsbuild/core'
10
11
 
11
12
  export default defineConfig({
12
13
  plugins: [
14
+ pluginLynx(),
13
15
  pluginVanillaLynx({
14
16
  entries: {
15
17
  card: {
@@ -32,7 +34,7 @@ export default defineConfig({
32
34
  card: './src/card/main-thread.ts',
33
35
  },
34
36
  },
35
- plugins: [pluginVanillaLynx()],
37
+ plugins: [pluginLynx(), pluginVanillaLynx()],
36
38
  })
37
39
  ```
38
40
 
@@ -74,4 +76,4 @@ pluginVanillaLynx({
74
76
  })
75
77
  ```
76
78
 
77
- When `bundleFilename` is omitted, the plugin uses Rspeedy's `output.filename.bundle`. Outside Rspeedy it defaults to `[name].[platform].bundle`.
79
+ When `bundleFilename` is omitted, `pluginLynx`'s `output.filename.bundle` is used (default `'[name].[platform].bundle'`).
package/dist/index.d.ts CHANGED
@@ -53,8 +53,8 @@ export declare interface PluginVanillaLynxOptions {
53
53
  * Override the final `.bundle` filename.
54
54
  *
55
55
  * @remarks
56
- * When omitted under Rspeedy, `output.filename.bundle` is used.
57
- * The default outside Rspeedy is `[name].[platform].bundle`.
56
+ * When omitted, `pluginLynx`'s `output.filename.bundle` is used (default
57
+ * `'[name].[platform].bundle'`).
58
58
  */
59
59
  bundleFilename?: VanillaBundleFilename | undefined;
60
60
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/vanilla-rsbuild-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "An Rsbuild plugin for building Vanilla Lynx applications with Element PAPI.",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -33,17 +33,17 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@lynx-js/runtime-wrapper-webpack-plugin": "0.2.4",
36
- "@lynx-js/template-webpack-plugin": "0.16.0"
36
+ "@lynx-js/template-webpack-plugin": "0.16.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@rsbuild/core": "2.2.3",
40
- "@rstest/core": "0.11.12",
41
- "@lynx-js/rsbuild-plugin": "0.1.0",
42
- "@lynx-js/rspeedy": "0.17.0",
43
- "@lynx-js/test-tools": "0.0.0"
39
+ "@lynx-js/rsbuild-plugin": "0.1.3",
40
+ "@lynx-js/rspeedy": "0.18.0",
41
+ "@lynx-js/test-tools": "0.0.0",
42
+ "@rsbuild/core": "2.2.9",
43
+ "@rstest/core": "0.12.1"
44
44
  },
45
45
  "peerDependencies": {
46
- "@lynx-js/rspeedy": "^0.17.0",
46
+ "@lynx-js/rspeedy": "^0.17.0 || ^0.18.0",
47
47
  "@rsbuild/core": "^2.0.0"
48
48
  },
49
49
  "peerDependenciesMeta": {
@@ -61,7 +61,7 @@
61
61
  "access": "public"
62
62
  },
63
63
  "scripts": {
64
- "build": "rslib build",
64
+ "build": "rslib",
65
65
  "test": "rstest",
66
66
  "test:type": "tsc6 --noEmit"
67
67
  }