@web/dev-server-core
Advanced tools
Comparing version 0.0.0-canary-20240212171943 to 0.0.0-canary-20240219104126
@@ -14,3 +14,3 @@ import chokidar from 'chokidar'; | ||
connections = new Set(); | ||
constructor(config, logger, fileWatcher = chokidar.watch([])) { | ||
constructor(config, logger, fileWatcher = chokidar.watch([], config.chokidarOptions)) { | ||
this.config = config; | ||
@@ -17,0 +17,0 @@ this.logger = logger; |
@@ -5,2 +5,3 @@ /// <reference types="node" /> | ||
import { Server } from 'net'; | ||
import chokidar from 'chokidar'; | ||
export type MimeTypeMappings = Record<string, string>; | ||
@@ -68,3 +69,7 @@ export interface DevServerCoreConfig { | ||
disableFileWatcher?: boolean; | ||
/** | ||
* Additional options you want to provide to chokidar file watcher | ||
*/ | ||
chokidarOptions?: chokidar.WatchOptions; | ||
} | ||
//# sourceMappingURL=DevServerCoreConfig.d.ts.map |
{ | ||
"name": "@web/dev-server-core", | ||
"version": "0.0.0-canary-20240212171943", | ||
"version": "0.0.0-canary-20240219104126", | ||
"publishConfig": { | ||
@@ -65,3 +65,3 @@ "access": "public" | ||
"@types/ws": "^7.4.0", | ||
"@web/parse5-utils": "0.0.0-canary-20240212171943", | ||
"@web/parse5-utils": "0.0.0-canary-20240219104126", | ||
"chokidar": "^3.4.3", | ||
@@ -68,0 +68,0 @@ "clone": "^2.1.2", |
@@ -21,3 +21,3 @@ import Koa from 'koa'; | ||
public logger: Logger, | ||
public fileWatcher = chokidar.watch([]), | ||
public fileWatcher = chokidar.watch([], config.chokidarOptions), | ||
) { | ||
@@ -24,0 +24,0 @@ if (!config) throw new Error('Missing config.'); |
import { Middleware } from 'koa'; | ||
import { Plugin } from '../plugins/Plugin'; | ||
import { Server } from 'net'; | ||
import chokidar from 'chokidar'; | ||
@@ -70,2 +71,7 @@ export type MimeTypeMappings = Record<string, string>; | ||
disableFileWatcher?: boolean; | ||
/** | ||
* Additional options you want to provide to chokidar file watcher | ||
*/ | ||
chokidarOptions?: chokidar.WatchOptions; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
286406
5484
+ Added@web/parse5-utils@0.0.0-canary-20240219104126(transitive)
- Removed@web/parse5-utils@0.0.0-canary-20240212171943(transitive)