vite 8.0.0-beta.17 → 8.0.0-beta.18

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.
@@ -12394,9 +12394,12 @@ function resolveChokidarOptions(options, resolvedOutDirs, emptyOutDir, cacheDir)
12394
12394
  ...otherOptions
12395
12395
  };
12396
12396
  }
12397
- function convertToNotifyOptions(options) {
12397
+ function convertToWatcherOptions(options) {
12398
12398
  if (!options) return;
12399
- return { pollInterval: options.usePolling ? options.interval ?? 100 : void 0 };
12399
+ return {
12400
+ usePolling: options.usePolling,
12401
+ pollInterval: options.interval
12402
+ };
12400
12403
  }
12401
12404
  var NoopWatcher = class extends EventEmitter {
12402
12405
  constructor(options) {
@@ -32698,13 +32701,6 @@ function resolveRolldownOptions(environment, chunkMetadataMap) {
32698
32701
  experimental: {
32699
32702
  ...options.rollupOptions.experimental,
32700
32703
  viteMode: true
32701
- },
32702
- optimization: {
32703
- inlineConst: typeof options.rollupOptions.optimization?.inlineConst === "boolean" ? options.rollupOptions.optimization.inlineConst : {
32704
- mode: "smart",
32705
- ...options.rollupOptions.optimization?.inlineConst
32706
- },
32707
- ...options.rollupOptions.optimization
32708
32704
  }
32709
32705
  };
32710
32706
  const isSsrTargetWebworkerEnvironment = environment.name === "ssr" && environment.getTopLevelConfig().ssr?.target === "webworker";
@@ -32771,7 +32767,7 @@ async function buildEnvironment(environment) {
32771
32767
  watch: {
32772
32768
  ...rollupOptions.watch,
32773
32769
  ...options.watch,
32774
- notify: convertToNotifyOptions(resolvedChokidarOptions)
32770
+ watcher: convertToWatcherOptions(resolvedChokidarOptions)
32775
32771
  }
32776
32772
  });
32777
32773
  watcher.on("event", (event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "8.0.0-beta.17",
3
+ "version": "8.0.0-beta.18",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",