@pinnacle0/webpack-util 0.4.52-beta.0 → 0.4.53
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 +4 -4
- package/src/WebpackConfigGenerator/Plugin/index.js +1 -1
- package/src/WebpackConfigGenerator/Plugin/index.js.map +1 -1
- package/src/WebpackConfigGenerator/Rule/index.js +1 -1
- package/src/WebpackConfigGenerator/Rule/index.js.map +1 -1
- package/src/WebpackConfigGenerator/Rule/ts.rule.js +1 -2
- package/src/WebpackConfigGenerator/Rule/ts.rule.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinnacle0/webpack-util",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.53",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
|
8
|
-
"@swc/core": "1.3.
|
|
8
|
+
"@swc/core": "1.3.42",
|
|
9
9
|
"autoprefixer": "10.4.14",
|
|
10
10
|
"css-loader": "6.7.3",
|
|
11
11
|
"css-minimizer-webpack-plugin": "4.2.2",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"react-refresh": "0.14.0",
|
|
22
22
|
"style-loader": "3.3.2",
|
|
23
23
|
"swc-loader": "0.2.3",
|
|
24
|
-
"swc-plugin-core-fe-hmr": "0.1
|
|
24
|
+
"swc-plugin-core-fe-hmr": "1.0.1",
|
|
25
25
|
"terser-webpack-plugin": "5.3.7",
|
|
26
|
-
"webpack": "5.76.
|
|
26
|
+
"webpack": "5.76.3",
|
|
27
27
|
"webpack-dev-server": "4.13.1",
|
|
28
28
|
"yargs": "17.7.1"
|
|
29
29
|
},
|
|
@@ -13,7 +13,6 @@ const webpack_plugin_1 = require("./webpack.plugin");
|
|
|
13
13
|
*/
|
|
14
14
|
class Plugin {
|
|
15
15
|
}
|
|
16
|
-
exports.Plugin = Plugin;
|
|
17
16
|
Plugin.scriptTagCrossOriginPlugin = html_plugin_1.scriptTagCrossOriginPlugin;
|
|
18
17
|
Plugin.reactRefresh = ts_plugin_1.reactRefreshPlugin;
|
|
19
18
|
Plugin.typeChecker = type_checker_plugin_1.typeCheckerPlugin;
|
|
@@ -29,4 +28,5 @@ Plugin.webpack = {
|
|
|
29
28
|
progress: webpack_plugin_1.webpackProgressPlugin,
|
|
30
29
|
define: webpack_plugin_1.webpackDefinePlugin,
|
|
31
30
|
};
|
|
31
|
+
exports.Plugin = Plugin;
|
|
32
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/WebpackConfigGenerator/Plugin/index.ts"],"names":[],"mappings":";;;AAAA,6CAAsE;AACtE,+CAAqE;AACrE,2CAA6D;AAC7D,+DAAwD;AACxD,qDAA4E;AAE5E;;;;GAIG;AACH,MAAa,MAAM;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/WebpackConfigGenerator/Plugin/index.ts"],"names":[],"mappings":";;;AAAA,6CAAsE;AACtE,+CAAqE;AACrE,2CAA6D;AAC7D,+DAAwD;AACxD,qDAA4E;AAE5E;;;;GAIG;AACH,MAAa,MAAM;;AACC,iCAA0B,GAAG,wCAA0B,CAAC;AAExD,mBAAY,GAAG,8BAAkB,CAAC;AAElC,kBAAW,GAAG,uCAAiB,CAAC;AAEhC,iBAAU,GAAG;IACzB,IAAI,EAAE,wBAAU;IAChB,cAAc,EAAE,iCAAoB;CACvC,CAAC;AAEc,gBAAS,GAAG;IACxB,MAAM,EAAE,wBAAY;IACpB,GAAG,EAAE,+BAAkB;CAC1B,CAAC;AAEc,cAAO,GAAG;IACtB,QAAQ,EAAE,sCAAqB;IAC/B,MAAM,EAAE,oCAAmB;CAC9B,CAAC;AApBO,wBAAM"}
|
|
@@ -10,9 +10,9 @@ const ts_rule_1 = require("./ts.rule");
|
|
|
10
10
|
*/
|
|
11
11
|
class Rule {
|
|
12
12
|
}
|
|
13
|
-
exports.Rule = Rule;
|
|
14
13
|
Rule.image = image_rule_1.imageRule;
|
|
15
14
|
Rule.other = other_rule_1.otherRule;
|
|
16
15
|
Rule.ts = ts_rule_1.tsRule;
|
|
17
16
|
Rule.stylesheet = stylesheet_rule_1.stylesheetRule;
|
|
17
|
+
exports.Rule = Rule;
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/WebpackConfigGenerator/Rule/index.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AACvC,6CAAuC;AACvC,uDAAiD;AACjD,uCAAiC;AAEjC;;GAEG;AACH,MAAa,IAAI;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/WebpackConfigGenerator/Rule/index.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AACvC,6CAAuC;AACvC,uDAAiD;AACjD,uCAAiC;AAEjC;;GAEG;AACH,MAAa,IAAI;;AACG,UAAK,GAAG,sBAAS,CAAC;AAElB,UAAK,GAAG,sBAAS,CAAC;AAElB,OAAE,GAAG,gBAAM,CAAC;AAEZ,eAAU,GAAG,gCAAc,CAAC;AAPnC,oBAAI"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.tsRule = void 0;
|
|
4
4
|
const RegExpUtil_1 = require("./RegExpUtil");
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- temp disable
|
|
6
5
|
function tsRule({ fastRefresh = false, nonES5Module = [] }) {
|
|
7
6
|
const swcLoader = {
|
|
8
7
|
loader: require.resolve("swc-loader"),
|
|
@@ -30,7 +29,7 @@ function tsRule({ fastRefresh = false, nonES5Module = [] }) {
|
|
|
30
29
|
return {
|
|
31
30
|
test: RegExpUtil_1.RegExpUtil.fileExtension(".js", ".mjs", ".cjs", ".ts", ".tsx"),
|
|
32
31
|
use: [swcLoader],
|
|
33
|
-
exclude: fastRefresh ? /node_modules/ : (
|
|
32
|
+
exclude: fastRefresh ? /node_modules/ : RegExpUtil_1.RegExpUtil.webpackExclude({ expect: nonES5Module }),
|
|
34
33
|
};
|
|
35
34
|
}
|
|
36
35
|
exports.tsRule = tsRule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts.rule.js","sourceRoot":"","sources":["../../../../src/WebpackConfigGenerator/Rule/ts.rule.ts"],"names":[],"mappings":";;;AACA,6CAAwC;AAOxC,
|
|
1
|
+
{"version":3,"file":"ts.rule.js","sourceRoot":"","sources":["../../../../src/WebpackConfigGenerator/Rule/ts.rule.ts"],"names":[],"mappings":";;;AACA,6CAAwC;AAOxC,SAAgB,MAAM,CAAC,EAAC,WAAW,GAAG,KAAK,EAAE,YAAY,GAAG,EAAE,EAAO;IACjE,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;wBAClB,OAAO,EAAE,WAAW;qBACvB;oBACD,eAAe,EAAE,IAAI;oBACrB,iBAAiB,EAAE,IAAI;iBAC1B;gBACD,YAAY,EAAE;oBACV,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;iBACvF;aACJ;SACJ;KACJ,CAAC;IAEF,OAAO;QACH,IAAI,EAAE,uBAAU,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;QACpE,GAAG,EAAE,CAAC,SAAS,CAAC;QAChB,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,uBAAU,CAAC,cAAc,CAAC,EAAC,MAAM,EAAE,YAAY,EAAC,CAAC;KAC5F,CAAC;AACN,CAAC;AA9BD,wBA8BC"}
|