@rsdoctor/core 0.4.1 → 0.4.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.
- package/dist/build-utils/build/index.d.ts +1 -0
- package/dist/build-utils/build/index.d.ts.map +1 -1
- package/dist/build-utils/build/index.js +3 -0
- package/dist/build-utils/build/loader/index.d.ts +2 -0
- package/dist/build-utils/build/loader/index.d.ts.map +1 -0
- package/dist/build-utils/build/loader/index.js +22 -0
- package/dist/build-utils/build/loader/probeLoader.d.ts +5 -0
- package/dist/build-utils/build/loader/probeLoader.d.ts.map +1 -0
- package/dist/build-utils/build/loader/probeLoader.js +76 -0
- package/dist/build-utils/build/loader/probeLoaderPlugin.d.ts +6 -0
- package/dist/build-utils/build/loader/probeLoaderPlugin.d.ts.map +1 -0
- package/dist/build-utils/build/loader/probeLoaderPlugin.js +111 -0
- package/dist/build-utils/build/module-graph/webpack/transform.d.ts.map +1 -1
- package/dist/build-utils/build/module-graph/webpack/transform.js +1 -1
- package/dist/build-utils/build/utils/index.d.ts +1 -0
- package/dist/build-utils/build/utils/index.d.ts.map +1 -1
- package/dist/build-utils/build/utils/index.js +3 -1
- package/dist/build-utils/build/utils/loader.d.ts +3 -1
- package/dist/build-utils/build/utils/loader.d.ts.map +1 -1
- package/dist/build-utils/build/utils/loader.js +31 -18
- package/dist/inner-plugins/plugins/bundle.d.ts.map +1 -1
- package/dist/inner-plugins/plugins/bundle.js +6 -9
- package/dist/inner-plugins/plugins/bundleTagPlugin.d.ts.map +1 -1
- package/dist/inner-plugins/plugins/bundleTagPlugin.js +2 -3
- package/dist/inner-plugins/utils/loader.d.ts.map +1 -1
- package/dist/inner-plugins/utils/loader.js +3 -4
- package/package.json +7 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/build-utils/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/build-utils/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC"}
|
|
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
var build_exports = {};
|
|
30
30
|
__export(build_exports, {
|
|
31
31
|
Chunks: () => Chunks,
|
|
32
|
+
Loader: () => Loader,
|
|
32
33
|
ModuleGraph: () => ModuleGraph,
|
|
33
34
|
Types: () => Types,
|
|
34
35
|
Utils: () => Utils
|
|
@@ -36,11 +37,13 @@ __export(build_exports, {
|
|
|
36
37
|
module.exports = __toCommonJS(build_exports);
|
|
37
38
|
var Chunks = __toESM(require("./chunks"));
|
|
38
39
|
var Utils = __toESM(require("./utils"));
|
|
40
|
+
var Loader = __toESM(require("./loader"));
|
|
39
41
|
var Types = __toESM(require("../../types"));
|
|
40
42
|
var ModuleGraph = __toESM(require("./module-graph"));
|
|
41
43
|
// Annotate the CommonJS export names for ESM import in node:
|
|
42
44
|
0 && (module.exports = {
|
|
43
45
|
Chunks,
|
|
46
|
+
Loader,
|
|
44
47
|
ModuleGraph,
|
|
45
48
|
Types,
|
|
46
49
|
Utils
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/loader/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var loader_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(loader_exports);
|
|
18
|
+
__reExport(loader_exports, require("./probeLoaderPlugin"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./probeLoaderPlugin")
|
|
22
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Plugin } from '@rsdoctor/types';
|
|
2
|
+
import type { LoaderDefinitionFunction } from '@rspack/core';
|
|
3
|
+
export declare const loaderModule: Plugin.LoaderDefinition<Parameters<LoaderDefinitionFunction>, {}>;
|
|
4
|
+
export default loaderModule;
|
|
5
|
+
//# sourceMappingURL=probeLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probeLoader.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/loader/probeLoader.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAO,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAI7D,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,gBAAgB,CAChD,UAAU,CAAC,wBAAwB,CAAC,EACpC,EAAE,CAwCH,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var probeLoader_exports = {};
|
|
30
|
+
__export(probeLoader_exports, {
|
|
31
|
+
default: () => probeLoader_default,
|
|
32
|
+
loaderModule: () => loaderModule
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(probeLoader_exports);
|
|
35
|
+
var import__ = require("../..");
|
|
36
|
+
var import_inner_plugins = require("../../../inner-plugins");
|
|
37
|
+
var import_lodash = require("lodash");
|
|
38
|
+
var import_path = __toESM(require("path"));
|
|
39
|
+
const loaderModule = function(...args) {
|
|
40
|
+
const time = Date.now();
|
|
41
|
+
const code = args[0];
|
|
42
|
+
const _options = this.getOptions();
|
|
43
|
+
const sdk = (0, import_inner_plugins.getSDK)(_options.builderName);
|
|
44
|
+
const loaderData = {
|
|
45
|
+
resource: {
|
|
46
|
+
path: this.resourcePath,
|
|
47
|
+
query: import__.Build.Utils.parseQuery(this.resourceQuery),
|
|
48
|
+
queryRaw: this.resourceQuery,
|
|
49
|
+
ext: import_path.default.extname(this.resourcePath).slice(1)
|
|
50
|
+
},
|
|
51
|
+
loaders: [
|
|
52
|
+
{
|
|
53
|
+
loader: _options.loader,
|
|
54
|
+
loaderIndex: this.loaderIndex,
|
|
55
|
+
path: _options.loader,
|
|
56
|
+
input: _options.type === "start" ? code : null,
|
|
57
|
+
result: _options.type === "end" ? code : null,
|
|
58
|
+
startAt: _options.type === "start" ? time : 0,
|
|
59
|
+
endAt: _options.type === "end" ? time : 0,
|
|
60
|
+
options: (0, import_lodash.omit)(_options.options, "type"),
|
|
61
|
+
isPitch: false,
|
|
62
|
+
sync: false,
|
|
63
|
+
errors: [],
|
|
64
|
+
pid: process.pid,
|
|
65
|
+
ppid: process.ppid
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
};
|
|
69
|
+
sdk.reportLoaderStartOrEnd(loaderData);
|
|
70
|
+
this.callback(null, ...args);
|
|
71
|
+
};
|
|
72
|
+
var probeLoader_default = loaderModule;
|
|
73
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
74
|
+
0 && (module.exports = {
|
|
75
|
+
loaderModule
|
|
76
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probeLoaderPlugin.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/loader/probeLoaderPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAUzC,qBAAa,iBAAiB;IAC5B,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,YAAY;IAoBnC,OAAO,CAAC,cAAc;CA0DvB"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var probeLoaderPlugin_exports = {};
|
|
30
|
+
__export(probeLoaderPlugin_exports, {
|
|
31
|
+
ProbeLoaderPlugin: () => ProbeLoaderPlugin
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(probeLoaderPlugin_exports);
|
|
34
|
+
var import_common = require("@rsdoctor/utils/common");
|
|
35
|
+
var import__ = require("../..");
|
|
36
|
+
var import__2 = require("..");
|
|
37
|
+
var import_path = __toESM(require("path"));
|
|
38
|
+
const BuiltinLoaderName = "builtin:swc-loader";
|
|
39
|
+
const ESMLoaderFile = ".mjs";
|
|
40
|
+
class ProbeLoaderPlugin {
|
|
41
|
+
apply(compiler) {
|
|
42
|
+
compiler.hooks.beforeRun.tap(
|
|
43
|
+
{
|
|
44
|
+
name: "ProbeLoaderPlugin"
|
|
45
|
+
},
|
|
46
|
+
() => {
|
|
47
|
+
this.addProbeLoader(compiler);
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
compiler.hooks.watchRun.tap(
|
|
51
|
+
{
|
|
52
|
+
name: "ProbeLoaderPlugin"
|
|
53
|
+
},
|
|
54
|
+
() => {
|
|
55
|
+
this.addProbeLoader(compiler);
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
addProbeLoader(compiler) {
|
|
60
|
+
let rules = compiler.options.module.rules;
|
|
61
|
+
const appendRule = (rule, index) => {
|
|
62
|
+
if ("use" in rule && Array.isArray(rule.use)) {
|
|
63
|
+
const _builtinRule = rule.use[index];
|
|
64
|
+
const _options = typeof _builtinRule.options === "string" ? {} : { ..._builtinRule };
|
|
65
|
+
rule.use.splice(index, 0, {
|
|
66
|
+
loader: import_path.default.join(__dirname, "./probeLoader.js"),
|
|
67
|
+
options: {
|
|
68
|
+
..._options,
|
|
69
|
+
ident: void 0,
|
|
70
|
+
type: "end",
|
|
71
|
+
builderName: compiler.options.name
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
rule.use.splice(index + 2, 0, {
|
|
75
|
+
loader: import_path.default.join(__dirname, "./probeLoader.js"),
|
|
76
|
+
options: {
|
|
77
|
+
..._options,
|
|
78
|
+
ident: void 0,
|
|
79
|
+
type: "start",
|
|
80
|
+
builderName: compiler.options.name
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return rule;
|
|
85
|
+
};
|
|
86
|
+
if (import_common.Loader.isVue(compiler)) {
|
|
87
|
+
compiler.options.module.rules = import__2.Utils.addProbeLoader2Rules(
|
|
88
|
+
rules,
|
|
89
|
+
appendRule,
|
|
90
|
+
(r) => !!r.loader
|
|
91
|
+
);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
rules = import__2.Utils.addProbeLoader2Rules(
|
|
95
|
+
rules,
|
|
96
|
+
appendRule,
|
|
97
|
+
(r) => import__.Build.Utils.getLoaderNameMatch(r, BuiltinLoaderName, true)
|
|
98
|
+
);
|
|
99
|
+
compiler.options.module.rules = import__2.Utils.addProbeLoader2Rules(
|
|
100
|
+
rules,
|
|
101
|
+
appendRule,
|
|
102
|
+
(r) => {
|
|
103
|
+
return import__.Build.Utils.getLoaderNameMatch(r, ESMLoaderFile, false) || import__.Build.Utils.isESMLoader(r);
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
109
|
+
0 && (module.exports = {
|
|
110
|
+
ProbeLoaderPlugin
|
|
111
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../../src/build-utils/build/module-graph/webpack/transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAU,WAAW,EAAe,MAAM,iBAAiB,CAAC;AAmBnE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,YAAY,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;CACvE;
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../../src/build-utils/build/module-graph/webpack/transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAU,WAAW,EAAe,MAAM,iBAAiB,CAAC;AAmBnE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,YAAY,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;CACvE;AAsND,wBAAsB,8BAA8B,CAClD,WAAW,EAAE,MAAM,CAAC,eAAe,EACnC,KAAK,EAAE,WAAW,EAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,6BAA6B,EAC/C,OAAO,CAAC,EAAE,gBAAgB,wBA2B3B"}
|
|
@@ -125,7 +125,7 @@ async function appendModuleData(origin, webpackGraph, graph, wbFs, features, con
|
|
|
125
125
|
module2.setProgram(program);
|
|
126
126
|
module2.meta.hasSetEsModuleStatement = (0, import_parser.hasSetEsModuleStatement)(program);
|
|
127
127
|
}
|
|
128
|
-
const transformed = (0, import_compatible.isExternalModule)(origin) ? "" : module2.getSource().transformed.length > 0 ? module2.getSource().transformed : (0, import_lodash.isFunction)(origin?.originalSource) ? origin.originalSource()?.source()?.toString() : "";
|
|
128
|
+
const transformed = (0, import_compatible.isExternalModule)(origin) ? "" : module2.getSource().transformed.length > 0 ? module2.getSource().transformed : (0, import_lodash.isFunction)(origin?.originalSource) ? origin.originalSource()?.source()?.toString() ?? "" : "";
|
|
129
129
|
const transformedSize = (0, import_compatible.isExternalModule)(origin) ? 0 : module2.getSize().transformedSize > 0 ? module2.getSize().transformedSize : Buffer.from(transformed).byteLength;
|
|
130
130
|
module2.setSource({
|
|
131
131
|
transformed,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC"}
|
|
@@ -18,9 +18,11 @@ module.exports = __toCommonJS(utils_exports);
|
|
|
18
18
|
__reExport(utils_exports, require("./loader"), module.exports);
|
|
19
19
|
__reExport(utils_exports, require("./plugin"), module.exports);
|
|
20
20
|
__reExport(utils_exports, require("./parseBundle"), module.exports);
|
|
21
|
+
__reExport(utils_exports, require("../loader/probeLoader"), module.exports);
|
|
21
22
|
// Annotate the CommonJS export names for ESM import in node:
|
|
22
23
|
0 && (module.exports = {
|
|
23
24
|
...require("./loader"),
|
|
24
25
|
...require("./plugin"),
|
|
25
|
-
...require("./parseBundle")
|
|
26
|
+
...require("./parseBundle"),
|
|
27
|
+
...require("../loader/probeLoader")
|
|
26
28
|
});
|
|
@@ -10,11 +10,13 @@ export declare function loadLoaderModule(loaderPath: string, cwd?: string): {
|
|
|
10
10
|
pitch: Plugin.PitchLoaderDefinitionFunction;
|
|
11
11
|
raw: boolean | void;
|
|
12
12
|
};
|
|
13
|
-
export declare function getLoaderOptions<T>(loaderContext: Plugin.LoaderContext<T>): T;
|
|
14
13
|
export declare function extractLoaderName(loaderPath: string, cwd?: string): string;
|
|
15
14
|
export declare function mapEachRules<T extends Plugin.BuildRuleSetRule>(rules: T[], callback: (rule: T) => T): T[];
|
|
16
15
|
export declare function isESMLoader(r: Plugin.BuildRuleSetRule): boolean;
|
|
17
16
|
export declare function getLoaderNameMatch(r: Plugin.BuildRuleSetRule, loaderName: string, strict?: boolean): boolean;
|
|
18
17
|
export declare function addProbeLoader2Rules<T extends Plugin.BuildRuleSetRule>(rules: T[], appendRules: (rule: T, index: number) => T, fn: (r: Plugin.BuildRuleSetRule) => boolean): T[];
|
|
19
18
|
export declare function createLoaderContextTrap(this: Plugin.LoaderContext<Common.PlainObject>, final: (err: Error | null | undefined, res: string | Buffer | null, sourceMap?: WebpackSourceMapInput) => void): Plugin.LoaderContext<Common.PlainObject<any>>;
|
|
19
|
+
export declare function parseQuery(query: string): {
|
|
20
|
+
[k: string]: string;
|
|
21
|
+
};
|
|
20
22
|
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/utils/loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/utils/loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAQ,cAAc,IAAI,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAQ/E,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAOA;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,EAClB,GAAG,SAAgB,GAClB;IACD,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IACzD,KAAK,EAAE,MAAM,CAAC,6BAA6B,CAAC;IAC5C,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;CACrB,CAiBA;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,SAAK,GAAG,MAAM,CAqBtE;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,gBAAgB,EAC5D,KAAK,EAAE,CAAC,EAAE,EACV,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GACvB,CAAC,EAAE,CAgFL;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,gBAAgB,WA2BrD;AAED,wBAAgB,kBAAkB,CAChC,CAAC,EAAE,MAAM,CAAC,gBAAgB,EAC1B,UAAU,EAAE,MAAM,EAClB,MAAM,UAAO,WAiBd;AAGD,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,gBAAgB,EACpE,KAAK,EAAE,CAAC,EAAE,EACV,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EAC1C,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,gBAAgB,KAAK,OAAO,GAC1C,CAAC,EAAE,CAuEL;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,EAC9C,KAAK,EAAE,CACL,GAAG,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAC3B,SAAS,CAAC,EAAE,qBAAqB,KAC9B,IAAI,iDAsFV;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM;;EAMvC"}
|
|
@@ -32,14 +32,13 @@ __export(loader_exports, {
|
|
|
32
32
|
createLoaderContextTrap: () => createLoaderContextTrap,
|
|
33
33
|
extractLoaderName: () => extractLoaderName,
|
|
34
34
|
getLoaderNameMatch: () => getLoaderNameMatch,
|
|
35
|
-
getLoaderOptions: () => getLoaderOptions,
|
|
36
35
|
isESMLoader: () => isESMLoader,
|
|
37
36
|
loadLoaderModule: () => loadLoaderModule,
|
|
38
37
|
mapEachRules: () => mapEachRules,
|
|
39
|
-
parsePathQueryFragment: () => parsePathQueryFragment
|
|
38
|
+
parsePathQueryFragment: () => parsePathQueryFragment,
|
|
39
|
+
parseQuery: () => parseQuery
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(loader_exports);
|
|
42
|
-
var import_loader_utils = require("loader-utils");
|
|
43
42
|
var import_path = __toESM(require("path"));
|
|
44
43
|
var import_fs_extra = __toESM(require("fs-extra"));
|
|
45
44
|
var import_lodash = require("lodash");
|
|
@@ -66,12 +65,6 @@ function loadLoaderModule(loaderPath, cwd = process.cwd()) {
|
|
|
66
65
|
raw: mod.default?.raw || mod.raw || false
|
|
67
66
|
};
|
|
68
67
|
}
|
|
69
|
-
function getLoaderOptions(loaderContext) {
|
|
70
|
-
if (typeof loaderContext.getOptions === "function") {
|
|
71
|
-
return loaderContext.getOptions();
|
|
72
|
-
}
|
|
73
|
-
return (0, import_loader_utils.getOptions)(loaderContext);
|
|
74
|
-
}
|
|
75
68
|
function extractLoaderName(loaderPath, cwd = "") {
|
|
76
69
|
let res = loaderPath.replace(cwd, "");
|
|
77
70
|
if (!import_path.default.isAbsolute(res))
|
|
@@ -89,7 +82,7 @@ function extractLoaderName(loaderPath, cwd = "") {
|
|
|
89
82
|
return res;
|
|
90
83
|
}
|
|
91
84
|
function mapEachRules(rules, callback) {
|
|
92
|
-
return rules.map((rule) => {
|
|
85
|
+
return rules.filter(Boolean).map((rule) => {
|
|
93
86
|
if (typeof rule === "string") {
|
|
94
87
|
return callback({
|
|
95
88
|
loader: rule
|
|
@@ -184,13 +177,14 @@ function addProbeLoader2Rules(rules, appendRules, fn) {
|
|
|
184
177
|
return rules.map((rule) => {
|
|
185
178
|
if (!rule || typeof rule === "string")
|
|
186
179
|
return rule;
|
|
187
|
-
if (fn(rule)) {
|
|
180
|
+
if (fn(rule) && !rule.use) {
|
|
188
181
|
const _rule = {
|
|
189
182
|
...rule,
|
|
190
183
|
use: [
|
|
191
184
|
{
|
|
192
185
|
loader: rule.loader,
|
|
193
|
-
options: rule.options
|
|
186
|
+
options: rule.options,
|
|
187
|
+
ident: "ident" in rule && rule.ident || void 0
|
|
194
188
|
}
|
|
195
189
|
],
|
|
196
190
|
loader: void 0,
|
|
@@ -200,11 +194,23 @@ function addProbeLoader2Rules(rules, appendRules, fn) {
|
|
|
200
194
|
}
|
|
201
195
|
if (rule.use) {
|
|
202
196
|
if (Array.isArray(rule.use)) {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
197
|
+
let indexList = [];
|
|
198
|
+
rule.use.forEach((_r, index) => {
|
|
199
|
+
if (fn(_r)) {
|
|
200
|
+
indexList.push(index);
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
let _rule2 = (0, import_lodash.cloneDeep)(rule);
|
|
204
|
+
if (indexList.length) {
|
|
205
|
+
indexList.forEach((i, _index) => {
|
|
206
|
+
if (i !== void 0) {
|
|
207
|
+
_rule2 = appendRules(_rule2, i + _index * 2);
|
|
208
|
+
}
|
|
209
|
+
});
|
|
206
210
|
}
|
|
207
|
-
|
|
211
|
+
return _rule2;
|
|
212
|
+
}
|
|
213
|
+
if (typeof rule.use === "object" && !Array.isArray(rule.use) && typeof rule.use !== "function") {
|
|
208
214
|
rule.use = [
|
|
209
215
|
{
|
|
210
216
|
...rule.use
|
|
@@ -297,15 +303,22 @@ function createLoaderContextTrap(final) {
|
|
|
297
303
|
});
|
|
298
304
|
return trap;
|
|
299
305
|
}
|
|
306
|
+
function parseQuery(query) {
|
|
307
|
+
if (query.startsWith("?")) {
|
|
308
|
+
query = query.slice(1);
|
|
309
|
+
}
|
|
310
|
+
const searchParams = new URLSearchParams(query);
|
|
311
|
+
return Object.fromEntries(searchParams.entries());
|
|
312
|
+
}
|
|
300
313
|
// Annotate the CommonJS export names for ESM import in node:
|
|
301
314
|
0 && (module.exports = {
|
|
302
315
|
addProbeLoader2Rules,
|
|
303
316
|
createLoaderContextTrap,
|
|
304
317
|
extractLoaderName,
|
|
305
318
|
getLoaderNameMatch,
|
|
306
|
-
getLoaderOptions,
|
|
307
319
|
isESMLoader,
|
|
308
320
|
loadLoaderModule,
|
|
309
321
|
mapEachRules,
|
|
310
|
-
parsePathQueryFragment
|
|
322
|
+
parsePathQueryFragment,
|
|
323
|
+
parseQuery
|
|
311
324
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/bundle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/bundle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAG5C,qBAAa,oBAAoB,CAC/B,CAAC,SAAS,MAAM,CAAC,YAAY,CAC7B,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC7B,SAAgB,IAAI,YAAY;IAEzB,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAa;IAElD,KAAK,CAAC,QAAQ,EAAE,CAAC;IAOjB,kBAAkB,CAAC,IAAI,EAAE,MAAM;iBATH,MAAM;;IAiBlC,eAAe,gBAAiB,MAAM,CAAC,eAAe,UAuC3D;IAEK,IAAI,QAAa,OAAO,CAAC,IAAI,CAAC,CASnC;CACH"}
|
|
@@ -41,15 +41,12 @@ class InternalBundlePlugin extends import_base.InternalBasePlugin {
|
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
} else if (compilation.hooks.processAssets && "afterProcessAssets" in compilation.hooks) {
|
|
44
|
-
compilation.hooks.afterProcessAssets.tap(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
);
|
|
44
|
+
compilation.hooks.afterProcessAssets.tap(this.tapPostOptions, () => {
|
|
45
|
+
Object.keys(compilation.assets).forEach((file) => {
|
|
46
|
+
const v = this.ensureAssetContent(file);
|
|
47
|
+
v.content = compilation.assets[file].source().toString();
|
|
48
|
+
});
|
|
49
|
+
});
|
|
53
50
|
} else if ("afterOptimizeChunkAssets" in compilation.hooks) {
|
|
54
51
|
compilation.hooks.afterOptimizeChunkAssets.tap(
|
|
55
52
|
this.tapPostOptions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundleTagPlugin.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/bundleTagPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"bundleTagPlugin.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/bundleTagPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAG5C,qBAAa,uBAAuB,CAClC,CAAC,SAAS,MAAM,CAAC,YAAY,CAC7B,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC7B,SAAgB,IAAI,eAAe;IAE5B,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,YAAY;CAuD3C"}
|
|
@@ -22,7 +22,6 @@ __export(bundleTagPlugin_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(bundleTagPlugin_exports);
|
|
24
24
|
var import_path = require("path");
|
|
25
|
-
var import_webpack_sources = require("webpack-sources");
|
|
26
25
|
var import_base = require("./base");
|
|
27
26
|
var import_logger = require("@rsdoctor/utils/logger");
|
|
28
27
|
class InternalBundleTagPlugin extends import_base.InternalBasePlugin {
|
|
@@ -55,11 +54,11 @@ class InternalBundleTagPlugin extends import_base.InternalBasePlugin {
|
|
|
55
54
|
if (!file || (0, import_path.extname)(file) !== ".js") {
|
|
56
55
|
continue;
|
|
57
56
|
}
|
|
57
|
+
const { ConcatSource } = compiler.webpack.sources;
|
|
58
58
|
compilation.updateAsset(
|
|
59
59
|
file,
|
|
60
|
-
// @ts-ignore
|
|
61
60
|
(old) => {
|
|
62
|
-
const concatSource = new
|
|
61
|
+
const concatSource = new ConcatSource();
|
|
63
62
|
let header = "\n console.log('RSDOCTOR_START::');\n";
|
|
64
63
|
let footer = "\n console.log('RSDOCTOR_END::');\n";
|
|
65
64
|
concatSource.add(header);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/utils/loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/utils/loader.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAK9C,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAGjE,wBAAgB,wBAAwB,CACtC,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,GACtD,0BAA0B,CAI5B;AAED,wBAAgB,mCAAmC,CACjD,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,sDAiBxD;AAED,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,GACtD,UAAU,CAAC,OAAO,UAAU,CAAC,gBAAgB,CAAC,CAGhD;AAED,wBAAgB,gBAAgB,CAC9B,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,WAgBxD;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,CAAC,gBAAgB,EAC/D,KAAK,EAAE,CAAC,EAAE,EACV,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,IAAI,CAAC,0BAA0B,EAAE,QAAQ,GAAG,YAAY,CAAC,EAClE,GAAG,SAAgB,EACnB,aAAa,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC,SAAS,CAAC,GAC9C,CAAC,EAAE,CAsDL;AAED,wBAAsB,YAAY,CAChC,GAAG,EAAE,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAC7C,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,cAAc,2BAoFjC"}
|
|
@@ -39,7 +39,6 @@ module.exports = __toCommonJS(loader_exports);
|
|
|
39
39
|
var import_axios = __toESM(require("axios"));
|
|
40
40
|
var import_enhanced_resolve = require("enhanced-resolve");
|
|
41
41
|
var import_fs = __toESM(require("fs"));
|
|
42
|
-
var import_loader_utils = require("loader-utils");
|
|
43
42
|
var import_lodash = require("lodash");
|
|
44
43
|
var import_path = __toESM(require("path"));
|
|
45
44
|
var import_logger = require("@rsdoctor/utils/logger");
|
|
@@ -52,11 +51,11 @@ var import_circleDetect = require("./circleDetect");
|
|
|
52
51
|
var import_build = require("../../build-utils/build");
|
|
53
52
|
var import_utils = require("../../build-utils/build/utils");
|
|
54
53
|
function getInternalLoaderOptions(loaderContext) {
|
|
55
|
-
const options =
|
|
54
|
+
const options = loaderContext.getOptions();
|
|
56
55
|
return options[import_common.Loader.LoaderInternalPropertyName];
|
|
57
56
|
}
|
|
58
57
|
function getLoaderOptionsWithoutInternalKeys(loaderContext) {
|
|
59
|
-
const options =
|
|
58
|
+
const options = loaderContext.getOptions();
|
|
60
59
|
const circlePaths = [];
|
|
61
60
|
const loaderOptions = (0, import_lodash.omit)(options, [import_common.Loader.LoaderInternalPropertyName]);
|
|
62
61
|
(0, import_circleDetect.checkCirclePath)(loaderOptions, [], circlePaths, 0);
|
|
@@ -133,7 +132,7 @@ async function reportLoader(ctx, start, startHRTime, isPitch, sync, code, err, r
|
|
|
133
132
|
{
|
|
134
133
|
resource: {
|
|
135
134
|
path: ctx.resourcePath,
|
|
136
|
-
query: (0,
|
|
135
|
+
query: (0, import_utils.parseQuery)(ctx.resourceQuery || "?"),
|
|
137
136
|
queryRaw: ctx.resourceQuery,
|
|
138
137
|
ext: import_path.default.extname(ctx.resourcePath).slice(1)
|
|
139
138
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -66,36 +66,31 @@
|
|
|
66
66
|
"enhanced-resolve": "5.12.0",
|
|
67
67
|
"filesize": "^10.1.4",
|
|
68
68
|
"fs-extra": "^11.1.1",
|
|
69
|
-
"loader-utils": "^2.0.4",
|
|
70
69
|
"lodash": "^4.17.21",
|
|
71
70
|
"path-browserify": "1.0.1",
|
|
72
71
|
"semver": "^7.6.3",
|
|
73
72
|
"source-map": "^0.7.4",
|
|
74
73
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
75
|
-
"
|
|
76
|
-
"@rsdoctor/
|
|
77
|
-
"@rsdoctor/
|
|
78
|
-
"@rsdoctor/
|
|
79
|
-
"@rsdoctor/utils": "0.4.1"
|
|
74
|
+
"@rsdoctor/graph": "0.4.3",
|
|
75
|
+
"@rsdoctor/sdk": "0.4.3",
|
|
76
|
+
"@rsdoctor/types": "0.4.3",
|
|
77
|
+
"@rsdoctor/utils": "0.4.3"
|
|
80
78
|
},
|
|
81
79
|
"devDependencies": {
|
|
82
80
|
"@rspack/core": "0.7.5",
|
|
83
81
|
"@types/fs-extra": "^11.0.4",
|
|
84
|
-
"@types/loader-utils": "^2.0.6",
|
|
85
82
|
"@types/lodash": "^4.17.7",
|
|
86
83
|
"@types/node": "^16",
|
|
87
84
|
"@types/node-fetch": "^2.6.11",
|
|
88
85
|
"@types/path-browserify": "1.0.3",
|
|
89
86
|
"@types/semver": "^7.5.8",
|
|
90
87
|
"@types/tapable": "2.2.7",
|
|
91
|
-
"@types/webpack": "5.28.5",
|
|
92
|
-
"@types/webpack-sources": "^3.2.3",
|
|
93
88
|
"babel-loader": "9.1.3",
|
|
94
89
|
"string-loader": "0.0.1",
|
|
95
90
|
"ts-loader": "^9.5.1",
|
|
96
91
|
"tslib": "2.4.1",
|
|
97
92
|
"typescript": "^5.2.2",
|
|
98
|
-
"webpack": "^5.
|
|
93
|
+
"webpack": "^5.90.0",
|
|
99
94
|
"@scripts/test-helper": "0.1.1"
|
|
100
95
|
},
|
|
101
96
|
"publishConfig": {
|
|
@@ -107,6 +102,6 @@
|
|
|
107
102
|
"dev": "npm run start",
|
|
108
103
|
"build": "modern build",
|
|
109
104
|
"start": "modern build -w",
|
|
110
|
-
"test": "vitest run"
|
|
105
|
+
"test": "vitest run -u"
|
|
111
106
|
}
|
|
112
107
|
}
|