@rsdoctor/core 1.2.2-beta.3 → 1.2.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.
|
@@ -94,7 +94,7 @@ async function doneHandler(_stats, _this, context, compiler) {
|
|
|
94
94
|
logger_namespaceObject.logger.debug(`${build_namespaceObject.Process.getMemoryUsageMessage()}, '[After Transform ModuleGraph]'`);
|
|
95
95
|
_this.modulesGraph && await _this.sdk.reportModuleGraph(_this.modulesGraph);
|
|
96
96
|
await _this.sdk.reportChunkGraph(_this.chunkGraph);
|
|
97
|
-
if (_this.options.supports.generateTileGraph) logger_namespaceObject.logger.warn(logger_namespaceObject.chalk.yellow('The option generateTileGraph is deprecated. Tile
|
|
97
|
+
if (_this.options.supports.generateTileGraph) logger_namespaceObject.logger.warn(logger_namespaceObject.chalk.yellow('The option generateTileGraph is deprecated. Treemap (i.e. Tile Graph) is now supported by default.'));
|
|
98
98
|
}
|
|
99
99
|
const ensureDevtools = (compiler)=>{
|
|
100
100
|
const devtool = compiler.options.devtool;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourcemapTool.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/sourcemapTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAQjD,eAAO,MAAM,UAAU,iBAAiB,CAAC;AAEzC;;;;;;GAMG;AACH,UAAU,qBAAqB;IAC7B,WAAW,EAAE,MAAM,CAAC,eAAe,CAAC;IACpC,cAAc,EAAE,sBAAsB,CACpC,MAAM,CAAC,YAAY,EACnB,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,CACrC,CAAC;IACF,sBAAsB,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG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,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM,EAClB,KAAK,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,YAGX,MAAM,0BAA0B,MAAM,KAAG,MAAM,CAuBhE;AAED;;;;;;;;;GASG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,GAAG,EACR,kBAAkB,EAAE,MAAM,EAAE,EAC5B,YAAY,EAAE,MAAM,CAAC,eAAe,EACpC,KAAK,EAAE,sBAAsB,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC,EAC3E,sBAAsB,CAAC,EAAE,MAAM,EAC/B,SAAS,CAAC,EAAE,MAAM,iBAyDnB;AAED;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,CAAC,eAAe,EACnC,KAAK,EAAE,sBAAsB,CAC3B,MAAM,CAAC,YAAY,EACnB,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,CACrC,EACD,sBAAsB,CAAC,EAAE,MAAM,EAC/B,SAAS,CAAC,EAAE,MAAM,iBAqEnB;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,qBAAqB,iBA+BpE"}
|
|
@@ -95,12 +95,12 @@ async function handleAfterEmitAssets(compilation, _this, sourceMapFilenameRegex,
|
|
|
95
95
|
if (!map) {
|
|
96
96
|
var _asset_info_related;
|
|
97
97
|
let sourceMapFile = null == (_asset_info_related = asset.info.related) ? void 0 : _asset_info_related.sourceMap;
|
|
98
|
-
|
|
98
|
+
let sourceMapFileAssetName = null == sourceMapFile ? void 0 : sourceMapFile.replace(/(\.[^.]+)(\.[^.]+)?$/, '$1');
|
|
99
99
|
if (!sourceMapFile) continue;
|
|
100
100
|
{
|
|
101
101
|
let sourceMapAsset = assets.find((asset)=>asset.name === sourceMapFile);
|
|
102
|
-
if (!sourceMapAsset) {
|
|
103
|
-
const baseNameWithoutHash = common_namespaceObject.Graph.formatAssetName(
|
|
102
|
+
if (!sourceMapAsset && sourceMapFileAssetName) {
|
|
103
|
+
const baseNameWithoutHash = common_namespaceObject.Graph.formatAssetName(sourceMapFileAssetName, 'string' == typeof compilation.options.output.filename ? compilation.options.output.filename : void 0);
|
|
104
104
|
sourceMapAsset = assets.find((asset)=>{
|
|
105
105
|
const assetBaseName = common_namespaceObject.Graph.formatAssetName(asset.name, 'string' == typeof compilation.options.output.filename ? compilation.options.output.filename : void 0);
|
|
106
106
|
return assetBaseName.includes(baseNameWithoutHash) && asset.name.endsWith('.map');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -72,11 +72,10 @@
|
|
|
72
72
|
"path-browserify": "1.0.1",
|
|
73
73
|
"semver": "^7.7.2",
|
|
74
74
|
"source-map": "^0.7.4",
|
|
75
|
-
"
|
|
76
|
-
"@rsdoctor/
|
|
77
|
-
"@rsdoctor/
|
|
78
|
-
"@rsdoctor/
|
|
79
|
-
"@rsdoctor/utils": "1.2.2-beta.3"
|
|
75
|
+
"@rsdoctor/graph": "1.2.3",
|
|
76
|
+
"@rsdoctor/types": "1.2.3",
|
|
77
|
+
"@rsdoctor/utils": "1.2.3",
|
|
78
|
+
"@rsdoctor/sdk": "1.2.3"
|
|
80
79
|
},
|
|
81
80
|
"devDependencies": {
|
|
82
81
|
"@rslib/core": "^0.11.0",
|