@rsbuild/plugin-preact 0.3.1 → 0.3.3

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.js CHANGED
@@ -23,10 +23,11 @@ __export(src_exports, {
23
23
  pluginPreact: () => pluginPreact
24
24
  });
25
25
  module.exports = __toCommonJS(src_exports);
26
+ var import_core = require("@rsbuild/core");
26
27
  var import_shared = require("@rsbuild/shared");
27
28
  var pluginPreact = (options = {}) => ({
28
29
  name: "rsbuild:preact",
29
- pre: ["rsbuild:swc"],
30
+ pre: [import_core.PLUGIN_SWC_NAME],
30
31
  setup(api) {
31
32
  const { reactAliasesEnabled = true } = options;
32
33
  api.modifyBundlerChain(async (chain, { isProd }) => {
package/dist/index.mjs CHANGED
@@ -7,13 +7,14 @@ import { createRequire } from "module";
7
7
  global.require = createRequire(import.meta.url);
8
8
 
9
9
  // src/index.ts
10
+ import { PLUGIN_SWC_NAME } from "@rsbuild/core";
10
11
  import {
11
12
  deepmerge,
12
13
  modifySwcLoaderOptions
13
14
  } from "@rsbuild/shared";
14
15
  var pluginPreact = (options = {}) => ({
15
16
  name: "rsbuild:preact",
16
- pre: ["rsbuild:swc"],
17
+ pre: [PLUGIN_SWC_NAME],
17
18
  setup(api) {
18
19
  const { reactAliasesEnabled = true } = options;
19
20
  api.modifyBundlerChain(async (chain, { isProd }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-preact",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Preact plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,12 +22,12 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@rsbuild/shared": "0.3.1"
25
+ "@rsbuild/shared": "0.3.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "16.x",
29
29
  "typescript": "^5.3.0",
30
- "@rsbuild/core": "0.3.1",
30
+ "@rsbuild/core": "0.3.3",
31
31
  "@scripts/test-helper": "1.0.0"
32
32
  },
33
33
  "publishConfig": {