@rsdoctor/rspack-plugin 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/plugin.js +5 -2
  2. package/package.json +6 -5
package/dist/plugin.js CHANGED
@@ -39,6 +39,7 @@ var import_path = __toESM(require("path"));
39
39
  var import_constants = require("./constants");
40
40
  var import_lodash = require("lodash");
41
41
  var import_builtinLoaderPlugin = require("./builtinLoaderPlugin");
42
+ var import_common = require("@rsdoctor/utils/common");
42
43
  class RsdoctorRspackPlugin {
43
44
  constructor(options) {
44
45
  this.name = import_constants.pluginTapName;
@@ -92,7 +93,7 @@ class RsdoctorRspackPlugin {
92
93
  this.done.bind(this, compiler)
93
94
  );
94
95
  new import_plugins.InternalSummaryPlugin(this).apply(compiler);
95
- if (this.options.features.loader) {
96
+ if (this.options.features.loader && !import_common.Loader.isVue(compiler)) {
96
97
  new import_plugins.InternalLoaderPlugin(this).apply(compiler);
97
98
  }
98
99
  if (this.options.features.plugins) {
@@ -102,7 +103,9 @@ class RsdoctorRspackPlugin {
102
103
  new import_plugins.InternalBundlePlugin(this).apply(compiler);
103
104
  }
104
105
  new import_plugins.InternalRulesPlugin(this).apply(compiler);
105
- new import_builtinLoaderPlugin.BuiltinLoaderPlugin().apply(compiler);
106
+ if (!import_common.Loader.isVue(compiler)) {
107
+ new import_builtinLoaderPlugin.BuiltinLoaderPlugin().apply(compiler);
108
+ }
106
109
  }
107
110
  /**
108
111
  * @description Generate ModuleGraph and ChunkGraph from stats and webpack module apis;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/rspack-plugin",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -16,9 +16,9 @@
16
16
  "@rspack/core": "0.5.1",
17
17
  "loader-utils": "^2.0.4",
18
18
  "lodash": "^4.17.21",
19
- "@rsdoctor/core": "0.1.3",
20
- "@rsdoctor/sdk": "0.1.3",
21
- "@rsdoctor/graph": "0.1.3"
19
+ "@rsdoctor/core": "0.1.4",
20
+ "@rsdoctor/sdk": "0.1.4",
21
+ "@rsdoctor/graph": "0.1.4"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/loader-utils": "^2.0.5",
@@ -27,7 +27,8 @@
27
27
  "@types/tapable": "2.2.2",
28
28
  "tslib": "2.4.1",
29
29
  "typescript": "^5.2.2",
30
- "@rsdoctor/types": "0.1.3"
30
+ "@rsdoctor/types": "0.1.4",
31
+ "@rsdoctor/utils": "0.1.4"
31
32
  },
32
33
  "publishConfig": {
33
34
  "access": "public",