@nuxt/webpack-builder-nightly 5.0.0-29754172.7cdbbb7a → 5.0.0-29754187.c12e0090

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/index.mjs +12 -3
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import { defu } from "defu";
11
11
  import { fileURLToPath, pathToFileURL } from "node:url";
12
12
  import { basename, dirname, isAbsolute, join, normalize, relative, resolve } from "pathe";
13
13
  import { joinURL, withTrailingSlash } from "ufo";
14
- import { DEFAULT_JS_FILE_EXTENSIONS, bundlerDiagnostics, configDiagnostics, directoryToURL, logger, resolveAlias, setBuildOutput, useNitro, useNuxt } from "@nuxt/kit";
14
+ import { DEFAULT_JS_FILE_EXTENSIONS, bundlerDiagnostics, configDiagnostics, directoryToURL, getAddDependencyCommand, logger, resolveAlias, setBuildOutput, useNitro, useNuxt } from "@nuxt/kit";
15
15
  import { createUnplugin } from "unplugin";
16
16
  import { generateTransform, rolldownString } from "rolldown-string";
17
17
  import { existsSync, readFileSync } from "node:fs";
@@ -1019,8 +1019,17 @@ async function getPostcssConfig(nuxt) {
1019
1019
  break;
1020
1020
  }
1021
1021
  }
1022
- if (typeof pluginFn !== "function") if (isDefault) bundlerDiagnostics.NUXT_B7011({ pluginName });
1023
- else bundlerDiagnostics.NUXT_B7007({ pluginName });
1022
+ if (typeof pluginFn !== "function") {
1023
+ const installCommand = await getAddDependencyCommand(pluginName, nuxt.options.rootDir, { dev: true });
1024
+ if (isDefault) bundlerDiagnostics.NUXT_B7011({
1025
+ pluginName,
1026
+ installCommand
1027
+ });
1028
+ else bundlerDiagnostics.NUXT_B7007({
1029
+ pluginName,
1030
+ installCommand
1031
+ });
1032
+ }
1024
1033
  }
1025
1034
  postcssOptions.plugins = plugins;
1026
1035
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/webpack-builder-nightly",
3
- "version": "5.0.0-29754172.7cdbbb7a",
3
+ "version": "5.0.0-29754187.c12e0090",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@nuxt/friendly-errors-webpack-plugin": "^2.6.0",
27
- "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29754172.7cdbbb7a",
27
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29754187.c12e0090",
28
28
  "@vue/compiler-sfc": "3.5.40",
29
29
  "autoprefixer": "^10.5.4",
30
30
  "css-loader": "^7.1.4",
@@ -68,7 +68,7 @@
68
68
  "webpackbar": "^7.0.0"
69
69
  },
70
70
  "devDependencies": {
71
- "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29754172.7cdbbb7a",
71
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29754187.c12e0090",
72
72
  "@rspack/core": "2.1.5",
73
73
  "@types/hash-sum": "1.0.2",
74
74
  "@types/webpack-bundle-analyzer": "4.7.0",
@@ -80,7 +80,7 @@
80
80
  "vue": "^3.5.40"
81
81
  },
82
82
  "peerDependencies": {
83
- "nuxt": "npm:nuxt-nightly@5.0.0-29754172.7cdbbb7a",
83
+ "nuxt": "npm:nuxt-nightly@5.0.0-29754187.c12e0090",
84
84
  "vue": "^3.3.4"
85
85
  },
86
86
  "engines": {