@rsbuild/plugin-preact 0.7.6 → 0.7.7

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/dist/index.cjs CHANGED
@@ -20,12 +20,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var src_exports = {};
22
22
  __export(src_exports, {
23
+ PLUGIN_PREACT_NAME: () => PLUGIN_PREACT_NAME,
23
24
  pluginPreact: () => pluginPreact
24
25
  });
25
26
  module.exports = __toCommonJS(src_exports);
26
27
  var import_shared = require("@rsbuild/shared");
28
+ var PLUGIN_PREACT_NAME = "rsbuild:preact";
27
29
  var pluginPreact = (options = {}) => ({
28
- name: "rsbuild:preact",
30
+ name: PLUGIN_PREACT_NAME,
29
31
  setup(api) {
30
32
  const { reactAliasesEnabled = true } = options;
31
33
  api.modifyRsbuildConfig((userConfig, { mergeRsbuildConfig }) => {
@@ -65,5 +67,6 @@ var pluginPreact = (options = {}) => ({
65
67
  });
66
68
  // Annotate the CommonJS export names for ESM import in node:
67
69
  0 && (module.exports = {
70
+ PLUGIN_PREACT_NAME,
68
71
  pluginPreact
69
72
  });
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ type PluginPreactOptions = {
7
7
  */
8
8
  reactAliasesEnabled?: boolean;
9
9
  };
10
+ declare const PLUGIN_PREACT_NAME = "rsbuild:preact";
10
11
  declare const pluginPreact: (options?: PluginPreactOptions) => RsbuildPlugin;
11
12
 
12
- export { type PluginPreactOptions, pluginPreact };
13
+ export { PLUGIN_PREACT_NAME, type PluginPreactOptions, pluginPreact };
package/dist/index.js CHANGED
@@ -8,8 +8,9 @@ import path from "path";
8
8
 
9
9
  // src/index.ts
10
10
  import { getNodeEnv } from "@rsbuild/shared";
11
+ var PLUGIN_PREACT_NAME = "rsbuild:preact";
11
12
  var pluginPreact = (options = {}) => ({
12
- name: "rsbuild:preact",
13
+ name: PLUGIN_PREACT_NAME,
13
14
  setup(api) {
14
15
  const { reactAliasesEnabled = true } = options;
15
16
  api.modifyRsbuildConfig((userConfig, { mergeRsbuildConfig }) => {
@@ -48,5 +49,6 @@ var pluginPreact = (options = {}) => ({
48
49
  }
49
50
  });
50
51
  export {
52
+ PLUGIN_PREACT_NAME,
51
53
  pluginPreact
52
54
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-preact",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "description": "Preact plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,15 +22,15 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@rsbuild/shared": "0.7.6"
25
+ "@rsbuild/shared": "0.7.7"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "18.x",
29
29
  "typescript": "^5.4.2",
30
- "@rsbuild/core": "0.7.6"
30
+ "@rsbuild/core": "0.7.7"
31
31
  },
32
32
  "peerDependencies": {
33
- "@rsbuild/core": "^0.7.6"
33
+ "@rsbuild/core": "^0.7.7"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public",