@unpackjs/plugin-react 1.5.2 → 1.5.4

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
@@ -68,7 +68,7 @@ const pluginReact = (options = {}) => {
68
68
  }
69
69
  },
70
70
  env: {
71
- targets: "Chrome >= 48"
71
+ targets: import_shared.DEFAULT_BROWSERSLIST
72
72
  }
73
73
  };
74
74
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,kBAAkB,CAAA;AAIjE,eAAO,MAAM,WAAW,iBAAiB,CAAA;AAEzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA;AACD,eAAO,MAAM,WAAW,aAAa,kBAAkB,KAAQ,YAmE9D,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAwB,KAAK,YAAY,EAAe,MAAM,kBAAkB,CAAA;AAIvF,eAAO,MAAM,WAAW,iBAAiB,CAAA;AAEzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA;AACD,eAAO,MAAM,WAAW,aAAa,kBAAkB,KAAQ,YAmE9D,CAAA"}
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ var __filename = /* @__PURE__ */ getFilename();
10
10
  import path2 from "node:path";
11
11
  import WebpackReactRefreshPlugin from "@pmmmwh/react-refresh-webpack-plugin";
12
12
  import RspackReactRefreshPlugin from "@rspack/plugin-react-refresh";
13
- import { isDevServer } from "@unpackjs/shared";
13
+ import { DEFAULT_BROWSERSLIST, isDevServer } from "@unpackjs/shared";
14
14
  import { addClickToComponentSupport } from "./click-to-component/index.js";
15
15
  import { addMpaSupport } from "./mpa.js";
16
16
  const PLUGIN_NAME = "unpack:react";
@@ -44,7 +44,7 @@ const pluginReact = (options = {}) => {
44
44
  }
45
45
  },
46
46
  env: {
47
- targets: "Chrome >= 48"
47
+ targets: DEFAULT_BROWSERSLIST
48
48
  }
49
49
  };
50
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpackjs/plugin-react",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -27,11 +27,11 @@
27
27
  "@rspack/plugin-react-refresh": "1.0.0",
28
28
  "react-refresh": "0.14.2",
29
29
  "swc-loader": "0.2.6",
30
- "@swc/core": "1.7.28",
30
+ "@swc/core": "1.7.36",
31
31
  "@swc/helpers": "0.5.13",
32
32
  "launch-editor": "2.9.1",
33
- "html-webpack-plugin": "5.6.0",
34
- "@unpackjs/shared": "^1.5.2"
33
+ "html-webpack-plugin": "5.6.2",
34
+ "@unpackjs/shared": "^1.5.4"
35
35
  },
36
36
  "scripts": {
37
37
  "dev": "modern build --watch",