@umijs/bundler-webpack 3.5.29 → 3.5.32
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.
|
@@ -25,6 +25,16 @@ function _bundlerUtils() {
|
|
|
25
25
|
return data;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
function _caseSensitivePathsWebpackPlugin() {
|
|
29
|
+
const data = _interopRequireDefault(require("@umijs/case-sensitive-paths-webpack-plugin"));
|
|
30
|
+
|
|
31
|
+
_caseSensitivePathsWebpackPlugin = function _caseSensitivePathsWebpackPlugin() {
|
|
32
|
+
return data;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return data;
|
|
36
|
+
}
|
|
37
|
+
|
|
28
38
|
function defaultWebpack() {
|
|
29
39
|
const data = _interopRequireWildcard(require("@umijs/deps/compiled/webpack"));
|
|
30
40
|
|
|
@@ -443,7 +453,10 @@ function _getConfig() {
|
|
|
443
453
|
webpackConfig.plugin('stats-webpack-plugin').use(new StatsPlugin('stats.json', {
|
|
444
454
|
chunkModules: true
|
|
445
455
|
}));
|
|
446
|
-
}
|
|
456
|
+
} // case-sensitive-paths
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
webpackConfig.plugin('case-sensitive-paths').use(new (_caseSensitivePathsWebpackPlugin().default)());
|
|
447
460
|
|
|
448
461
|
const enableManifest = () => {
|
|
449
462
|
// manifest
|
|
@@ -38,8 +38,6 @@ function _path() {
|
|
|
38
38
|
return data;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
var _pkgUpContainName = require("./pkgUpContainName");
|
|
42
|
-
|
|
43
41
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
44
42
|
|
|
45
43
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -87,7 +85,9 @@ function isMatch(opts) {
|
|
|
87
85
|
function getPkgPath(opts) {
|
|
88
86
|
const dir = (0, _path().dirname)(opts.path);
|
|
89
87
|
if (dir in pkgPathCache) return pkgPathCache[dir];
|
|
90
|
-
pkgPathCache[dir] = (
|
|
88
|
+
pkgPathCache[dir] = _utils().pkgUp.sync({
|
|
89
|
+
cwd: opts.path
|
|
90
|
+
});
|
|
91
91
|
return pkgPathCache[dir];
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -16,6 +16,16 @@ function _react() {
|
|
|
16
16
|
return data;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
function _utils() {
|
|
20
|
+
const data = require("@umijs/utils");
|
|
21
|
+
|
|
22
|
+
_utils = function _utils() {
|
|
23
|
+
return data;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
return data;
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
function _path() {
|
|
20
30
|
const data = require("path");
|
|
21
31
|
|
|
@@ -26,8 +36,6 @@ function _path() {
|
|
|
26
36
|
return data;
|
|
27
37
|
}
|
|
28
38
|
|
|
29
|
-
var _pkgUpContainName = require("./pkgUpContainName");
|
|
30
|
-
|
|
31
39
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
32
40
|
|
|
33
41
|
const pkgPathCache = {};
|
|
@@ -35,7 +43,9 @@ const pkgPathCache = {};
|
|
|
35
43
|
function getPkgPath(filePath) {
|
|
36
44
|
const dir = (0, _path().dirname)(filePath);
|
|
37
45
|
if (dir in pkgPathCache) return pkgPathCache[dir];
|
|
38
|
-
pkgPathCache[dir] = (
|
|
46
|
+
pkgPathCache[dir] = _utils().pkgUp.sync({
|
|
47
|
+
cwd: filePath
|
|
48
|
+
});
|
|
39
49
|
return pkgPathCache[dir];
|
|
40
50
|
}
|
|
41
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-webpack",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.32",
|
|
4
4
|
"description": "@umijs/bundler-webpack",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -37,10 +37,11 @@
|
|
|
37
37
|
"strip-ansi": "6.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@umijs/bundler-utils": "3.5.
|
|
41
|
-
"@umijs/
|
|
42
|
-
"@umijs/
|
|
43
|
-
"@umijs/
|
|
40
|
+
"@umijs/bundler-utils": "3.5.32",
|
|
41
|
+
"@umijs/case-sensitive-paths-webpack-plugin": "^1.0.1",
|
|
42
|
+
"@umijs/deps": "3.5.32",
|
|
43
|
+
"@umijs/types": "3.5.32",
|
|
44
|
+
"@umijs/utils": "3.5.32",
|
|
44
45
|
"jest-worker": "26.6.2",
|
|
45
46
|
"node-libs-browser": "2.2.1",
|
|
46
47
|
"normalize-url": "1.9.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const pkgUpContainName: (dir: string) => string | null;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.pkgUpContainName = void 0;
|
|
7
|
-
|
|
8
|
-
function _react() {
|
|
9
|
-
const data = _interopRequireDefault(require("react"));
|
|
10
|
-
|
|
11
|
-
_react = function _react() {
|
|
12
|
-
return data;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
return data;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function _utils() {
|
|
19
|
-
const data = require("@umijs/utils");
|
|
20
|
-
|
|
21
|
-
_utils = function _utils() {
|
|
22
|
-
return data;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
return data;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function _path() {
|
|
29
|
-
const data = _interopRequireDefault(require("path"));
|
|
30
|
-
|
|
31
|
-
_path = function _path() {
|
|
32
|
-
return data;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
return data;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
|
-
|
|
40
|
-
const pkgUpContainName = dir => {
|
|
41
|
-
let pkgPath = _utils().pkgUp.sync({
|
|
42
|
-
cwd: dir
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
if (!pkgPath) return pkgPath;
|
|
46
|
-
|
|
47
|
-
const _require = require(pkgPath),
|
|
48
|
-
name = _require.name; // invalid package
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
if (!name) return pkgUpContainName(_path().default.dirname(dir));
|
|
52
|
-
return pkgPath;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
exports.pkgUpContainName = pkgUpContainName;
|