@shuvi/platform-web 1.0.2 → 1.0.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.
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.getPlugin = exports.getPageMiddleware = void 0;
16
16
  const service_1 = require("@shuvi/service");
17
- const config_1 = require("@shuvi/toolpack/lib/webpack/config");
18
17
  const copy_file_plugin_1 = require("@shuvi/toolpack/lib/webpack/plugins/copy-file-plugin");
19
18
  const shared_1 = require("../../../shared");
20
19
  const paths_1 = require("../../paths");
@@ -89,13 +88,11 @@ const getPlugin = (platformContext) => {
89
88
  return chain;
90
89
  },
91
90
  addExtraTarget: ({ createConfig }, context) => {
92
- const serverWebpackHelpers = (0, config_1.webpackHelpers)();
93
91
  const serverChain = createConfig({
94
92
  name: shared_1.BUNDLER_TARGET_SERVER,
95
93
  node: true,
96
94
  entry: getServerEntry(),
97
- outputDir: shared_1.SERVER_OUTPUT_DIR,
98
- webpackHelpers: serverWebpackHelpers
95
+ outputDir: shared_1.SERVER_OUTPUT_DIR
99
96
  });
100
97
  return {
101
98
  name: shared_1.BUNDLER_TARGET_SERVER,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/platform-web",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -72,18 +72,17 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "@next/react-refresh-utils": "12.1.6",
75
- "@shuvi/error-overlay": "1.0.2",
76
- "@shuvi/hook": "1.0.2",
77
- "@shuvi/platform-shared": "1.0.2",
75
+ "@shuvi/error-overlay": "1.0.4",
76
+ "@shuvi/hook": "1.0.4",
77
+ "@shuvi/platform-shared": "1.0.4",
78
78
  "@shuvi/redox": "0.0.7",
79
79
  "@shuvi/redox-react": "0.0.7",
80
- "@shuvi/router": "1.0.2",
81
- "@shuvi/router-react": "1.0.2",
82
- "@shuvi/runtime": "1.0.2",
83
- "@shuvi/service": "1.0.2",
84
- "@shuvi/shared": "1.0.2",
85
- "@shuvi/toolpack": "1.0.2",
86
- "@shuvi/utils": "1.0.2",
80
+ "@shuvi/router": "1.0.4",
81
+ "@shuvi/router-react": "1.0.4",
82
+ "@shuvi/runtime": "1.0.4",
83
+ "@shuvi/shared": "1.0.4",
84
+ "@shuvi/toolpack": "1.0.4",
85
+ "@shuvi/utils": "1.0.4",
87
86
  "content-type": "1.0.4",
88
87
  "core-js": "3.6.5",
89
88
  "ejs": "3.1.5",
@@ -99,9 +98,10 @@
99
98
  "whatwg-fetch": "3.0.0"
100
99
  },
101
100
  "peerDependencies": {
102
- "@shuvi/service": "1.0.2"
101
+ "@shuvi/service": "1.0.4"
103
102
  },
104
103
  "devDependencies": {
104
+ "@shuvi/service": "workspace:*",
105
105
  "@testing-library/react": "^13.2.0",
106
106
  "@types/content-type": "^1.1.5",
107
107
  "@types/ejs": "^3.1.0",