@nuxt/vite-builder-nightly 4.5.0-29657113.e77d3dbf → 4.5.0-29657252.71ef10cc

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 +2 -6
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -2468,7 +2468,7 @@ const setupWatcher = (nuxt) => {
2468
2468
  const path = resolve(nuxt.options.srcDir, pattern);
2469
2469
  if (!path.startsWith(srcDir)) extraPaths.add(path);
2470
2470
  }
2471
- nuxt.hook("vite:serverCreated", async (server, { isClient }) => {
2471
+ nuxt.hook("vite:serverCreated", (server, { isClient }) => {
2472
2472
  if (!isClient) return;
2473
2473
  const watcher = server.watcher;
2474
2474
  watcher.on("all", (event, path) => {
@@ -2476,11 +2476,7 @@ const setupWatcher = (nuxt) => {
2476
2476
  if (isIgnored(normalized)) return;
2477
2477
  nuxt.callHook("builder:watch", event, normalized);
2478
2478
  });
2479
- if (extraPaths.size) {
2480
- const ready = new Promise((resolve) => watcher.once("ready", resolve));
2481
- watcher.add([...extraPaths]);
2482
- await ready;
2483
- }
2479
+ if (extraPaths.size) watcher.add([...extraPaths]);
2484
2480
  });
2485
2481
  };
2486
2482
  export { bundle, setupWatcher };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/vite-builder-nightly",
3
- "version": "4.5.0-29657113.e77d3dbf",
3
+ "version": "4.5.0-29657252.71ef10cc",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -23,7 +23,7 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.5.0-29657113.e77d3dbf",
26
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.5.0-29657252.71ef10cc",
27
27
  "@rollup/plugin-replace": "^6.0.3",
28
28
  "@vitejs/plugin-vue": "^6.0.7",
29
29
  "@vitejs/plugin-vue-jsx": "^5.1.5",
@@ -55,7 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@babel/plugin-proposal-decorators": "7.29.0",
57
57
  "@babel/plugin-syntax-jsx": "7.28.6",
58
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.5.0-29657113.e77d3dbf",
58
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.5.0-29657252.71ef10cc",
59
59
  "h3": "1.15.11",
60
60
  "h3-next": "npm:h3@2.0.1-rc.22",
61
61
  "nitropack": "2.13.4",
@@ -68,7 +68,7 @@
68
68
  "peerDependencies": {
69
69
  "@babel/plugin-proposal-decorators": "^7.25.0",
70
70
  "@babel/plugin-syntax-jsx": "^7.25.0",
71
- "nuxt": "npm:nuxt-nightly@4.5.0-29657113.e77d3dbf",
71
+ "nuxt": "npm:nuxt-nightly@4.5.0-29657252.71ef10cc",
72
72
  "rolldown": "^1.0.0-beta.38",
73
73
  "rollup-plugin-visualizer": "^6.0.0 || ^7.0.1",
74
74
  "vue": "^3.3.4"