ssr-plugin-react 6.1.75 → 6.1.76

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.1.76](https://github.com/zhangyuang/ssr/compare/v6.1.75...v6.1.76) (2022-03-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * remove plugin.js ([a97ed3e](https://github.com/zhangyuang/ssr/commit/a97ed3e58cd239ba649f3bf3551e24ce3a96da44))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [6.1.75](https://github.com/zhangyuang/ssr/compare/v6.1.74...v6.1.75) (2022-03-21)
7
18
 
8
19
  **Note:** Version bump only for package ssr-plugin-react
package/cjs/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare function reactPlugin(): {
1
+ export declare function clientPlugin(): {
2
2
  name: string;
3
3
  start: () => Promise<void>;
4
4
  build: () => Promise<void>;
package/cjs/index.js CHANGED
@@ -14,10 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.reactPlugin = void 0;
17
+ exports.clientPlugin = void 0;
18
18
  const ssr_server_utils_1 = require("ssr-server-utils");
19
19
  const { isVite } = (0, ssr_server_utils_1.loadConfig)();
20
- function reactPlugin() {
20
+ function clientPlugin() {
21
21
  return {
22
22
  name: 'plugin-react',
23
23
  start: async () => {
@@ -42,5 +42,5 @@ function reactPlugin() {
42
42
  }
43
43
  };
44
44
  }
45
- exports.reactPlugin = reactPlugin;
45
+ exports.clientPlugin = clientPlugin;
46
46
  __exportStar(require("./tools/vite"), exports);
package/esm/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare function reactPlugin(): {
1
+ export declare function clientPlugin(): {
2
2
  name: string;
3
3
  start: () => Promise<void>;
4
4
  build: () => Promise<void>;
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { loadConfig } from 'ssr-server-utils';
2
2
  const { isVite } = loadConfig();
3
- export function reactPlugin() {
3
+ export function clientPlugin() {
4
4
  return {
5
5
  name: 'plugin-react',
6
6
  start: async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssr-plugin-react",
3
- "version": "6.1.75",
3
+ "version": "6.1.76",
4
4
  "description": "plugin-react for ssr",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -56,10 +56,10 @@
56
56
  "postcss-safe-parser": "^6.0.0",
57
57
  "react-dev-utils": "^11.0.4",
58
58
  "serialize-javascript": "^6.0.0",
59
- "ssr-client-utils": "^6.1.75",
60
- "ssr-hoc-react": "^6.1.75",
61
- "ssr-server-utils": "^6.1.74",
62
- "ssr-webpack": "^6.1.75",
59
+ "ssr-client-utils": "^6.1.76",
60
+ "ssr-hoc-react": "^6.1.76",
61
+ "ssr-server-utils": "^6.1.76",
62
+ "ssr-webpack": "^6.1.76",
63
63
  "terser-webpack-plugin": "^2.3.5",
64
64
  "url-loader": "^4.1.1",
65
65
  "vite": "^2.7.0",
@@ -75,7 +75,7 @@
75
75
  "@types/react-router-dom": "^5.1.3",
76
76
  "@types/webpack": "^4.41.10",
77
77
  "concurrently": "^5.1.0",
78
- "ssr-types-react": "^6.1.75"
78
+ "ssr-types-react": "^6.1.76"
79
79
  },
80
- "gitHead": "408fda0dff9b324b56caad81288592d049eb181c"
80
+ "gitHead": "ac45a89abb2f54e9cd246cbf4a12c8d0b55dbbe8"
81
81
  }
package/src/index.ts CHANGED
@@ -2,7 +2,7 @@ import { loadConfig } from 'ssr-server-utils'
2
2
 
3
3
  const { isVite } = loadConfig()
4
4
 
5
- export function reactPlugin () {
5
+ export function clientPlugin () {
6
6
  return {
7
7
  name: 'plugin-react',
8
8
  start: async () => {