@pinnacle0/webpack-util 0.3.41 → 0.4.43
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.
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinnacle0/webpack-util",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.43",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@pmmmwh/react-refresh-webpack-plugin": "0.5.
|
|
8
|
-
"@swc/core": "1.3.
|
|
7
|
+
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
|
8
|
+
"@swc/core": "1.3.22",
|
|
9
9
|
"autoprefixer": "10.4.13",
|
|
10
10
|
"css-loader": "6.7.2",
|
|
11
11
|
"css-minimizer-webpack-plugin": "4.2.2",
|
|
12
12
|
"fork-ts-checker-webpack-plugin": "7.2.13",
|
|
13
|
-
"fs-extra": "
|
|
13
|
+
"fs-extra": "11.1.0",
|
|
14
14
|
"html-webpack-plugin": "5.5.0",
|
|
15
15
|
"less": "4.1.3",
|
|
16
16
|
"less-loader": "11.1.0",
|
|
17
|
-
"mini-css-extract-plugin": "2.7.
|
|
18
|
-
"postcss": "8.4.
|
|
19
|
-
"postcss-loader": "7.0.
|
|
17
|
+
"mini-css-extract-plugin": "2.7.2",
|
|
18
|
+
"postcss": "8.4.20",
|
|
19
|
+
"postcss-loader": "7.0.2",
|
|
20
20
|
"pretty-format": "29.3.1",
|
|
21
21
|
"react-refresh": "0.14.0",
|
|
22
22
|
"style-loader": "3.3.1",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/fs-extra": "9.0.13",
|
|
36
36
|
"@types/html-webpack-plugin": "3.2.6",
|
|
37
|
-
"@types/yargs": "17.0.
|
|
38
|
-
"typescript": "4.
|
|
37
|
+
"@types/yargs": "17.0.17",
|
|
38
|
+
"typescript": "4.9.4",
|
|
39
39
|
"@pinnacle0/devtool-util": "1.1.5"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
@@ -27,7 +27,7 @@ function nonES5({ nonES5Module }) {
|
|
|
27
27
|
},
|
|
28
28
|
};
|
|
29
29
|
return {
|
|
30
|
-
test: RegExpUtil_1.RegExpUtil.fileExtension(".js", ".jsx"),
|
|
30
|
+
test: RegExpUtil_1.RegExpUtil.fileExtension(".js", ".cjs", ".mjs", ".jsx"),
|
|
31
31
|
use: [swcLoader],
|
|
32
32
|
exclude: RegExpUtil_1.RegExpUtil.webpackExclude({ nonES5Module }),
|
|
33
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"non-es5.rule.js","sourceRoot":"","sources":["../../../../src/WebpackConfigGenerator/Rule/non-es5.rule.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"non-es5.rule.js","sourceRoot":"","sources":["../../../../src/WebpackConfigGenerator/Rule/non-es5.rule.ts"],"names":[],"mappings":";;;AAEA,6CAAwC;AAMxC;;;GAGG;AACH,SAAgB,MAAM,CAAC,EAAC,YAAY,EAAO;IACvC,MAAM,SAAS,GAA2B;QACtC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC;QACrC,OAAO,EAAE;YACL,GAAG,EAAE;gBACD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACJ,MAAM,EAAE,YAAY;oBACpB,UAAU,EAAE,IAAI;iBACnB;gBACD,SAAS,EAAE;oBACP,KAAK,EAAE;wBACH,OAAO,EAAE,SAAS;qBACrB;oBACD,eAAe,EAAE,IAAI;oBACrB,iBAAiB,EAAE,IAAI;iBAC1B;aACJ;SACJ;KACJ,CAAC;IAEF,OAAO;QACH,IAAI,EAAE,uBAAU,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QAC7D,GAAG,EAAE,CAAC,SAAS,CAAC;QAChB,OAAO,EAAE,uBAAU,CAAC,cAAc,CAAC,EAAC,YAAY,EAAC,CAAC;KACrD,CAAC;AACN,CAAC;AA1BD,wBA0BC"}
|
|
@@ -11,8 +11,9 @@ const RegExpUtil_1 = require("./RegExpUtil");
|
|
|
11
11
|
*/
|
|
12
12
|
function otherRule({ extraExtensionsForOtherRule }) {
|
|
13
13
|
return {
|
|
14
|
+
// put `ico` here instead of image.rule, to avoid inline favicon into HTML
|
|
14
15
|
test: RegExpUtil_1.RegExpUtil.fileExtension(".ico", ...Constant_1.Constant.mediaExtensions, ...Constant_1.Constant.fontExtensions, ...extraExtensionsForOtherRule),
|
|
15
|
-
type: "asset",
|
|
16
|
+
type: "asset/resource",
|
|
16
17
|
generator: {
|
|
17
18
|
filename: "static/other/[name].[hash:8][ext][query]",
|
|
18
19
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"other.rule.js","sourceRoot":"","sources":["../../../../src/WebpackConfigGenerator/Rule/other.rule.ts"],"names":[],"mappings":";;;AACA,6CAAwC;AACxC,6CAAwC;AAMxC;;;;;GAKG;AACH,SAAgB,SAAS,CAAC,EAAC,2BAA2B,EAAgB;IAClE,OAAO;QACH,IAAI,EAAE,uBAAU,CAAC,aAAa,CAAC,MAAM,EAAE,GAAG,mBAAQ,CAAC,eAAe,EAAE,GAAG,mBAAQ,CAAC,cAAc,EAAE,GAAG,2BAA2B,CAAC;QAC/H,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"other.rule.js","sourceRoot":"","sources":["../../../../src/WebpackConfigGenerator/Rule/other.rule.ts"],"names":[],"mappings":";;;AACA,6CAAwC;AACxC,6CAAwC;AAMxC;;;;;GAKG;AACH,SAAgB,SAAS,CAAC,EAAC,2BAA2B,EAAgB;IAClE,OAAO;QACH,0EAA0E;QAC1E,IAAI,EAAE,uBAAU,CAAC,aAAa,CAAC,MAAM,EAAE,GAAG,mBAAQ,CAAC,eAAe,EAAE,GAAG,mBAAQ,CAAC,cAAc,EAAE,GAAG,2BAA2B,CAAC;QAC/H,IAAI,EAAE,gBAAgB;QACtB,SAAS,EAAE;YACP,QAAQ,EAAE,0CAA0C;SACvD;KACJ,CAAC;AACN,CAAC;AATD,8BASC"}
|