@nuxt/vite-builder-nightly 5.0.0-29656656.bb4e7ef7 → 5.0.0-29657315.d21befcd

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
@@ -2175,7 +2175,7 @@ const setupWatcher = (nuxt) => {
2175
2175
  const path = resolve(nuxt.options.srcDir, pattern);
2176
2176
  if (!path.startsWith(srcDir)) extraPaths.add(path);
2177
2177
  }
2178
- nuxt.hook("vite:serverCreated", async (server, { isClient }) => {
2178
+ nuxt.hook("vite:serverCreated", (server, { isClient }) => {
2179
2179
  if (!isClient) return;
2180
2180
  const watcher = server.watcher;
2181
2181
  watcher.on("all", (event, path) => {
@@ -2183,11 +2183,7 @@ const setupWatcher = (nuxt) => {
2183
2183
  if (isIgnored(normalized)) return;
2184
2184
  nuxt.callHook("builder:watch", event, normalized);
2185
2185
  });
2186
- if (extraPaths.size) {
2187
- const ready = new Promise((resolve) => watcher.once("ready", resolve));
2188
- watcher.add([...extraPaths]);
2189
- await ready;
2190
- }
2186
+ if (extraPaths.size) watcher.add([...extraPaths]);
2191
2187
  });
2192
2188
  };
2193
2189
  export { bundle, setupWatcher };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/vite-builder-nightly",
3
- "version": "5.0.0-29656656.bb4e7ef7",
3
+ "version": "5.0.0-29657315.d21befcd",
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@5.0.0-29656656.bb4e7ef7",
26
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29657315.d21befcd",
27
27
  "@vitejs/plugin-vue": "^6.0.7",
28
28
  "consola": "^3.4.2",
29
29
  "defu": "^6.1.7",
@@ -49,7 +49,7 @@
49
49
  "devDependencies": {
50
50
  "@babel/plugin-proposal-decorators": "7.29.0",
51
51
  "@babel/plugin-syntax-jsx": "7.28.6",
52
- "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29656656.bb4e7ef7",
52
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29657315.d21befcd",
53
53
  "@vitejs/plugin-vue-jsx": "5.1.5",
54
54
  "autoprefixer": "10.5.0",
55
55
  "cssnano": "8.0.1",
@@ -69,7 +69,7 @@
69
69
  "@vitejs/plugin-vue-jsx": "^5.1.5",
70
70
  "autoprefixer": "^10.4.27",
71
71
  "cssnano": "^7.1.3 || ^8.0.0",
72
- "nuxt": "npm:nuxt-nightly@5.0.0-29656656.bb4e7ef7",
72
+ "nuxt": "npm:nuxt-nightly@5.0.0-29657315.d21befcd",
73
73
  "rollup-plugin-visualizer": "^6.0.0 || ^7.0.1",
74
74
  "vue": "^3.3.4"
75
75
  },