@adonisjs/vite 5.0.1-next.1 → 5.0.1-next.2

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.
@@ -166,12 +166,14 @@ var Vite = class {
166
166
  for (const entryPoint of jsEntrypoints) {
167
167
  const filePath = join(server.config.root, entryPoint);
168
168
  const entryMod = server.moduleGraph.getModuleById(string.toUnixSlash(filePath));
169
- if (entryMod) this.#collectCss(entryMod, preloadUrls, visitedModules);
169
+ if (entryMod) {
170
+ this.#collectCss(entryMod, preloadUrls, visitedModules);
171
+ }
170
172
  }
171
173
  const elements = Array.from(preloadUrls).map(
172
174
  (href) => this.#generateElement({
173
175
  tag: "link",
174
- attributes: { rel: "stylesheet", as: "style", href }
176
+ attributes: { rel: "stylesheet", href }
175
177
  })
176
178
  );
177
179
  elements.forEach((element) => cssTagsElement.add(element));
package/build/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Vite
3
- } from "./chunk-JIJQZOYL.js";
3
+ } from "./chunk-AHFYQLFC.js";
4
4
  import "./chunk-ZCQTQOMI.js";
5
5
 
6
6
  // stubs/main.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Vite
3
- } from "../chunk-JIJQZOYL.js";
3
+ } from "../chunk-AHFYQLFC.js";
4
4
  import {
5
5
  ViteMiddleware
6
6
  } from "../chunk-FDN2SRQF.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/vite",
3
3
  "description": "Vite plugin for AdonisJS",
4
- "version": "5.0.1-next.1",
4
+ "version": "5.0.1-next.2",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },
@@ -57,21 +57,21 @@
57
57
  "@japa/snapshot": "^2.0.9",
58
58
  "@poppinss/ts-exec": "^1.4.1",
59
59
  "@release-it/conventional-changelog": "^10.0.1",
60
- "@types/node": "^24.3.1",
60
+ "@types/node": "^24.6.2",
61
61
  "@types/supertest": "^6.0.3",
62
62
  "c8": "^10.1.3",
63
63
  "copyfiles": "^2.4.1",
64
- "cross-env": "^10.0.0",
65
- "del-cli": "^6.0.0",
64
+ "cross-env": "^10.1.0",
65
+ "del-cli": "^7.0.0",
66
66
  "edge.js": "^6.3.0",
67
- "eslint": "^9.35.0",
67
+ "eslint": "^9.36.0",
68
68
  "prettier": "^3.6.2",
69
- "release-it": "^19.0.4",
69
+ "release-it": "^19.0.5",
70
70
  "supertest": "^7.1.4",
71
71
  "tsup": "^8.5.0",
72
- "typedoc": "^0.28.12",
73
- "typescript": "~5.9.2",
74
- "vite": "^7.1.5"
72
+ "typedoc": "^0.28.13",
73
+ "typescript": "~5.9.3",
74
+ "vite": "^7.1.9"
75
75
  },
76
76
  "dependencies": {
77
77
  "@poppinss/utils": "^7.0.0-next.3",