@rsdoctor/rspack-plugin 1.4.1-beta.0 → 1.5.1

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/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  const __rslib_import_meta_url__ = "u" < typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
3
3
  var __webpack_modules__ = {
4
4
  "./package.json" (module) {
5
- module.exports = JSON.parse('{"name":"@rsdoctor/rspack-plugin","version":"1.4.1-beta.0","repository":{"type":"git","url":"https://github.com/web-infra-dev/rsdoctor","directory":"packages/rspack-plugin"},"license":"MIT","main":"dist/index.cjs","types":"dist/index.d.ts","files":["dist"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.cjs"}},"type":"module","scripts":{"dev":"npm run start","start":"rslib build -w","build":"rslib build","test":"rstest run"},"dependencies":{"@rsdoctor/core":"workspace:*","@rsdoctor/graph":"workspace:*","@rsdoctor/sdk":"workspace:*","@rsdoctor/types":"workspace:*","@rsdoctor/utils":"workspace:*"},"devDependencies":{"@rspack/core":"1.7.1","@types/node":"^22.8.1","@types/tapable":"2.2.7","tslib":"2.8.1","typescript":"^5.9.2"},"peerDependencies":{"@rspack/core":"*"},"peerDependenciesMeta":{"@rspack/core":{"optional":true}},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
5
+ module.exports = JSON.parse('{"name":"@rsdoctor/rspack-plugin","version":"1.5.1","repository":{"type":"git","url":"https://github.com/web-infra-dev/rsdoctor","directory":"packages/rspack-plugin"},"license":"MIT","main":"dist/index.cjs","types":"dist/index.d.ts","files":["dist"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.cjs"}},"type":"module","scripts":{"dev":"npm run start","start":"rslib build -w","build":"rslib build","test":"rstest run"},"dependencies":{"@rsdoctor/core":"workspace:*","@rsdoctor/graph":"workspace:*","@rsdoctor/sdk":"workspace:*","@rsdoctor/types":"workspace:*","@rsdoctor/utils":"workspace:*"},"devDependencies":{"@rspack/core":"1.7.4","@types/node":"^22.8.1","@types/tapable":"2.2.7","tslib":"2.8.1","typescript":"^5.9.2"},"peerDependencies":{"@rspack/core":"*"},"peerDependenciesMeta":{"@rspack/core":{"optional":true}},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
6
6
  }
7
7
  }, __webpack_module_cache__ = {};
8
8
  function __webpack_require__(moduleId) {
@@ -87,8 +87,8 @@ for(var __rspack_i in (()=>{
87
87
  logger_namespaceObject.logger.debug('[RspackNativePlugin] Enabled');
88
88
  let enableNativePlugin = this.options.experiments?.enableNativePlugin;
89
89
  new RsdoctorRspackNativePlugin({
90
- moduleGraphFeatures: 'boolean' == typeof enableNativePlugin ? enableNativePlugin : enableNativePlugin?.moduleGraph || !1,
91
- chunkGraphFeatures: 'boolean' == typeof enableNativePlugin ? enableNativePlugin : enableNativePlugin?.chunkGraph || !1,
90
+ moduleGraphFeatures: enableNativePlugin?.moduleGraph ?? !0,
91
+ chunkGraphFeatures: enableNativePlugin?.chunkGraph ?? !0,
92
92
  sourceMapFeatures: {
93
93
  cheap: !1,
94
94
  module: !1
@@ -113,7 +113,7 @@ for(var __rspack_i in (()=>{
113
113
  done = async (compiler)=>{
114
114
  (0, logger_namespaceObject.time)('RsdoctorRspackPlugin.done');
115
115
  try {
116
- await this.sdk.bootstrap(), this.sdk.addClientRoutes([
116
+ logger_namespaceObject.logger.debug('[RsdoctorRspackPlugin] bootstrap(start) in done()'), await this.sdk.bootstrap(), logger_namespaceObject.logger.debug('[RsdoctorRspackPlugin] bootstrap(end) in done()'), this.sdk.addClientRoutes([
117
117
  types_namespaceObject.Manifest.RsdoctorManifestClientRoutes.Overall
118
118
  ]), this.outsideInstance && 'parent' in this.sdk && this.sdk.parent.master.setOutputDir(external_path_default().resolve(this.options.output.reportDir || compiler.outputPath, this.options.output.mode === types_namespaceObject.SDK.IMode[types_namespaceObject.SDK.IMode.brief] ? '' : `./${types_namespaceObject.Constants.RsdoctorOutputFolder}`)), this.sdk.setOutputDir(external_path_default().resolve(this.options.output.reportDir || compiler.outputPath, this.options.output.mode === types_namespaceObject.SDK.IMode[types_namespaceObject.SDK.IMode.brief] ? '' : `./${types_namespaceObject.Constants.RsdoctorOutputFolder}`)), await this.sdk.writeStore(), this.options.disableClientServer || (this.options.output.mode === types_namespaceObject.SDK.IMode[types_namespaceObject.SDK.IMode.brief] ? await (0, plugins_namespaceObject.handleBriefModeReport)(this.sdk, this.options, this.options.disableClientServer) : await this.sdk.server.openClientPage('homepage')), (this.options.disableClientServer || this.options.output.mode === types_namespaceObject.SDK.IMode[types_namespaceObject.SDK.IMode.brief] && Array.isArray(this.options.output.options?.type) && 1 === this.options.output.options.type.length && 'json' === this.options.output.options.type[0]) && await this.sdk.dispose();
119
119
  } finally{
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { Loader as common_Loader } from "@rsdoctor/utils/common";
9
9
  import { logger, time, timeEnd } from "@rsdoctor/utils/logger";
10
10
  var __webpack_modules__ = {
11
11
  "./package.json" (module) {
12
- module.exports = JSON.parse('{"name":"@rsdoctor/rspack-plugin","version":"1.4.1-beta.0","repository":{"type":"git","url":"https://github.com/web-infra-dev/rsdoctor","directory":"packages/rspack-plugin"},"license":"MIT","main":"dist/index.cjs","types":"dist/index.d.ts","files":["dist"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.cjs"}},"type":"module","scripts":{"dev":"npm run start","start":"rslib build -w","build":"rslib build","test":"rstest run"},"dependencies":{"@rsdoctor/core":"workspace:*","@rsdoctor/graph":"workspace:*","@rsdoctor/sdk":"workspace:*","@rsdoctor/types":"workspace:*","@rsdoctor/utils":"workspace:*"},"devDependencies":{"@rspack/core":"1.7.1","@types/node":"^22.8.1","@types/tapable":"2.2.7","tslib":"2.8.1","typescript":"^5.9.2"},"peerDependencies":{"@rspack/core":"*"},"peerDependenciesMeta":{"@rspack/core":{"optional":true}},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
12
+ module.exports = JSON.parse('{"name":"@rsdoctor/rspack-plugin","version":"1.5.1","repository":{"type":"git","url":"https://github.com/web-infra-dev/rsdoctor","directory":"packages/rspack-plugin"},"license":"MIT","main":"dist/index.cjs","types":"dist/index.d.ts","files":["dist"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.cjs"}},"type":"module","scripts":{"dev":"npm run start","start":"rslib build -w","build":"rslib build","test":"rstest run"},"dependencies":{"@rsdoctor/core":"workspace:*","@rsdoctor/graph":"workspace:*","@rsdoctor/sdk":"workspace:*","@rsdoctor/types":"workspace:*","@rsdoctor/utils":"workspace:*"},"devDependencies":{"@rspack/core":"1.7.4","@types/node":"^22.8.1","@types/tapable":"2.2.7","tslib":"2.8.1","typescript":"^5.9.2"},"peerDependencies":{"@rspack/core":"*"},"peerDependenciesMeta":{"@rspack/core":{"optional":true}},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
13
13
  }
14
14
  }, __webpack_module_cache__ = {};
15
15
  let pluginTapName = 'RsdoctorRspackPlugin', pluginTapPostOptions = {
@@ -67,8 +67,8 @@ class RsdoctorRspackPlugin {
67
67
  logger.debug('[RspackNativePlugin] Enabled');
68
68
  let enableNativePlugin = this.options.experiments?.enableNativePlugin;
69
69
  new RsdoctorRspackNativePlugin({
70
- moduleGraphFeatures: 'boolean' == typeof enableNativePlugin ? enableNativePlugin : enableNativePlugin?.moduleGraph || !1,
71
- chunkGraphFeatures: 'boolean' == typeof enableNativePlugin ? enableNativePlugin : enableNativePlugin?.chunkGraph || !1,
70
+ moduleGraphFeatures: enableNativePlugin?.moduleGraph ?? !0,
71
+ chunkGraphFeatures: enableNativePlugin?.chunkGraph ?? !0,
72
72
  sourceMapFeatures: {
73
73
  cheap: !1,
74
74
  module: !1
@@ -93,7 +93,7 @@ class RsdoctorRspackPlugin {
93
93
  done = async (compiler)=>{
94
94
  time('RsdoctorRspackPlugin.done');
95
95
  try {
96
- await this.sdk.bootstrap(), this.sdk.addClientRoutes([
96
+ logger.debug('[RsdoctorRspackPlugin] bootstrap(start) in done()'), await this.sdk.bootstrap(), logger.debug('[RsdoctorRspackPlugin] bootstrap(end) in done()'), this.sdk.addClientRoutes([
97
97
  Manifest.RsdoctorManifestClientRoutes.Overall
98
98
  ]), this.outsideInstance && 'parent' in this.sdk && this.sdk.parent.master.setOutputDir(path.resolve(this.options.output.reportDir || compiler.outputPath, this.options.output.mode === SDK.IMode[SDK.IMode.brief] ? '' : `./${Constants.RsdoctorOutputFolder}`)), this.sdk.setOutputDir(path.resolve(this.options.output.reportDir || compiler.outputPath, this.options.output.mode === SDK.IMode[SDK.IMode.brief] ? '' : `./${Constants.RsdoctorOutputFolder}`)), await this.sdk.writeStore(), this.options.disableClientServer || (this.options.output.mode === SDK.IMode[SDK.IMode.brief] ? await handleBriefModeReport(this.sdk, this.options, this.options.disableClientServer) : await this.sdk.server.openClientPage('homepage')), (this.options.disableClientServer || this.options.output.mode === SDK.IMode[SDK.IMode.brief] && Array.isArray(this.options.output.options?.type) && 1 === this.options.output.options.type.length && 'json' === this.options.output.options.type[0]) && await this.sdk.dispose();
99
99
  } finally{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/rspack-plugin",
3
- "version": "1.4.1-beta.0",
3
+ "version": "1.5.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -21,14 +21,14 @@
21
21
  },
22
22
  "type": "module",
23
23
  "dependencies": {
24
- "@rsdoctor/graph": "1.4.1-beta.0",
25
- "@rsdoctor/core": "1.4.1-beta.0",
26
- "@rsdoctor/types": "1.4.1-beta.0",
27
- "@rsdoctor/sdk": "1.4.1-beta.0",
28
- "@rsdoctor/utils": "1.4.1-beta.0"
24
+ "@rsdoctor/core": "1.5.1",
25
+ "@rsdoctor/graph": "1.5.1",
26
+ "@rsdoctor/types": "1.5.1",
27
+ "@rsdoctor/sdk": "1.5.1",
28
+ "@rsdoctor/utils": "1.5.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@rspack/core": "1.7.1",
31
+ "@rspack/core": "1.7.4",
32
32
  "@types/node": "^22.8.1",
33
33
  "@types/tapable": "2.2.7",
34
34
  "tslib": "2.8.1",