@umijs/bundler-webpack 4.0.0-rc.3 → 4.0.0-rc.6

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.
@@ -7,6 +7,7 @@ const {
7
7
  evalModuleCode,
8
8
  AUTO_PUBLIC_PATH,
9
9
  ABSOLUTE_PUBLIC_PATH,
10
+ BASE_URI,
10
11
  SINGLE_DOT_PATH_SEGMENT,
11
12
  stringifyRequest
12
13
  } = require("./utils");
@@ -261,7 +262,8 @@ function pitch(request) {
261
262
  layer: options.layer,
262
263
  publicPath:
263
264
  /** @type {string} */
264
- publicPathForExtract
265
+ publicPathForExtract,
266
+ baseUri: `${BASE_URI}/`
265
267
  },
266
268
  /**
267
269
  * @param {Error | null | undefined} error
@@ -97,6 +97,7 @@ function compareModulesByIdentifier(a, b) {
97
97
  const MODULE_TYPE = "css/mini-extract";
98
98
  const AUTO_PUBLIC_PATH = "__mini_css_extract_plugin_public_path_auto__";
99
99
  const ABSOLUTE_PUBLIC_PATH = "webpack:///mini-css-extract-plugin/";
100
+ const BASE_URI = "webpack://";
100
101
  const SINGLE_DOT_PATH_SEGMENT = "__mini_css_extract_plugin_single_dot_path_segment__";
101
102
  /**
102
103
  * @param {string} str
@@ -207,6 +208,7 @@ module.exports = {
207
208
  MODULE_TYPE,
208
209
  AUTO_PUBLIC_PATH,
209
210
  ABSOLUTE_PUBLIC_PATH,
211
+ BASE_URI,
210
212
  SINGLE_DOT_PATH_SEGMENT,
211
213
  stringifyRequest,
212
214
  getUndoPath