@umijs/bundler-webpack 4.0.0-canary.20220507.2 → 4.0.0-canary.20220516.3
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.
|
@@ -88,6 +88,9 @@ async function addJavaScriptRules(opts) {
|
|
|
88
88
|
})
|
|
89
89
|
.end(),
|
|
90
90
|
];
|
|
91
|
+
srcRules
|
|
92
|
+
.concat(depRules)
|
|
93
|
+
.forEach((rule) => rule.resolve.set('fullySpecified', false));
|
|
91
94
|
// const prefix = existsSync(join(cwd, 'src')) ? join(cwd, 'src') : cwd;
|
|
92
95
|
const srcTranspiler = userConfig.srcTranspiler || types_1.Transpiler.babel;
|
|
93
96
|
srcRules.forEach((rule) => {
|
package/dist/config/svgRules.js
CHANGED
|
@@ -11,7 +11,7 @@ class RuntimePublicPathPlugin {
|
|
|
11
11
|
// https://github.com/webpack/webpack/blob/master/lib/runtime/PublicPathRuntimeModule.js
|
|
12
12
|
if (module.constructor.name === 'PublicPathRuntimeModule') {
|
|
13
13
|
// @ts-ignore
|
|
14
|
-
module._cachedGeneratedCode = `__webpack_require__.p = (globalThis || window).publicPath;`;
|
|
14
|
+
module._cachedGeneratedCode = `__webpack_require__.p = (globalThis || window).publicPath || '/';`;
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
});
|
package/dist/schema.js
CHANGED
|
@@ -4,18 +4,30 @@ exports.getSchemas = void 0;
|
|
|
4
4
|
const types_1 = require("./types");
|
|
5
5
|
const options = [
|
|
6
6
|
'cheap-source-map',
|
|
7
|
-
'cheap-eval-source-map',
|
|
8
|
-
'cheap-hidden-source-map',
|
|
9
|
-
'cheap-inline-source-map',
|
|
10
7
|
'cheap-module-source-map',
|
|
11
|
-
'cheap-module-eval-source-map',
|
|
12
|
-
'cheap-module-hidden-source-map',
|
|
13
|
-
'cheap-module-inline-source-map',
|
|
14
8
|
'eval',
|
|
15
9
|
'eval-source-map',
|
|
10
|
+
'eval-cheap-source-map',
|
|
11
|
+
'eval-cheap-module-source-map',
|
|
12
|
+
'eval-nosources-cheap-source-map',
|
|
13
|
+
'eval-nosources-cheap-module-source-map',
|
|
14
|
+
'eval-nosources-source-map',
|
|
16
15
|
'source-map',
|
|
17
16
|
'hidden-source-map',
|
|
17
|
+
'hidden-nosources-cheap-source-map',
|
|
18
|
+
'hidden-nosources-cheap-module-source-map',
|
|
19
|
+
'hidden-nosources-source-map',
|
|
20
|
+
'hidden-cheap-source-map',
|
|
21
|
+
'hidden-cheap-module-source-map',
|
|
18
22
|
'inline-source-map',
|
|
23
|
+
'inline-cheap-source-map',
|
|
24
|
+
'inline-cheap-module-source-map',
|
|
25
|
+
'inline-nosources-cheap-source-map',
|
|
26
|
+
'inline-nosources-cheap-module-source-map',
|
|
27
|
+
'inline-nosources-source-map',
|
|
28
|
+
'nosources-source-map',
|
|
29
|
+
'nosources-cheap-source-map',
|
|
30
|
+
'nosources-cheap-module-source-map',
|
|
19
31
|
];
|
|
20
32
|
const DEVTOOL_REGEX = new RegExp('^' + // start of string
|
|
21
33
|
'(#@|@|#)?' + // maybe one of the pragmas
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-webpack",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.20220516.3",
|
|
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.
|
|
39
|
-
"@umijs/bundler-utils": "4.0.0-canary.
|
|
40
|
-
"@umijs/mfsu": "4.0.0-canary.
|
|
41
|
-
"@umijs/utils": "4.0.0-canary.
|
|
38
|
+
"@umijs/babel-preset-umi": "4.0.0-canary.20220516.3",
|
|
39
|
+
"@umijs/bundler-utils": "4.0.0-canary.20220516.3",
|
|
40
|
+
"@umijs/mfsu": "4.0.0-canary.20220516.3",
|
|
41
|
+
"@umijs/utils": "4.0.0-canary.20220516.3",
|
|
42
42
|
"css-loader": "6.7.1",
|
|
43
43
|
"es5-imcompatible-versions": "^0.1.73",
|
|
44
44
|
"jest-worker": "27.5.1",
|