@umijs/bundler-webpack 4.0.0-canary.20220422.1 → 4.0.0-canary.20220422.2

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.
@@ -28,18 +28,6 @@ function createServer(opts) {
28
28
  const { webpackConfig, userConfig } = opts;
29
29
  const { proxy } = userConfig;
30
30
  const app = (0, express_1.default)();
31
- // basename middleware
32
- app.use((req, _res, next) => {
33
- const { url, path } = req;
34
- const { basename, history } = userConfig;
35
- if ((history === null || history === void 0 ? void 0 : history.type) === 'browser' &&
36
- basename !== '/' &&
37
- url.startsWith(basename)) {
38
- req.url = url.slice(basename.length);
39
- req.path = path.slice(basename.length);
40
- }
41
- next();
42
- });
43
31
  // cros
44
32
  app.use((_req, res, next) => {
45
33
  res.header('Access-Control-Allow-Origin', '*');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-webpack",
3
- "version": "4.0.0-canary.20220422.1",
3
+ "version": "4.0.0-canary.20220422.2",
4
4
  "description": "@umijs/bundler-webpack",
5
5
  "homepage": "https://github.com/umijs/umi-next/tree/master/packages/bundler-webpack#readme",
6
6
  "bugs": "https://github.com/umijs/umi-next/issues",
@@ -35,10 +35,10 @@
35
35
  "@svgr/plugin-jsx": "^6.2.1",
36
36
  "@svgr/plugin-svgo": "^6.2.0",
37
37
  "@types/hapi__joi": "17.1.8",
38
- "@umijs/babel-preset-umi": "4.0.0-canary.20220422.1",
39
- "@umijs/bundler-utils": "4.0.0-canary.20220422.1",
40
- "@umijs/mfsu": "4.0.0-canary.20220422.1",
41
- "@umijs/utils": "4.0.0-canary.20220422.1",
38
+ "@umijs/babel-preset-umi": "4.0.0-canary.20220422.2",
39
+ "@umijs/bundler-utils": "4.0.0-canary.20220422.2",
40
+ "@umijs/mfsu": "4.0.0-canary.20220422.2",
41
+ "@umijs/utils": "4.0.0-canary.20220422.2",
42
42
  "css-loader": "6.7.1",
43
43
  "es5-imcompatible-versions": "^0.1.73",
44
44
  "jest-worker": "27.5.1",