@kronor/dtv 9.4.2 → 9.4.3
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.
|
@@ -74,7 +74,11 @@ export async function loadProject(args) {
|
|
|
74
74
|
try {
|
|
75
75
|
server = await vite.createServer({
|
|
76
76
|
configFile: viteConfig,
|
|
77
|
-
|
|
77
|
+
// The views are loaded once, so nothing is watched: watching a large project can exceed
|
|
78
|
+
// the system's limit of watchers (ENOSPC on Linux CI). Not `watch: null`, which a
|
|
79
|
+
// project's `server.watch` would override (mergeConfig skips nulls) and which turns
|
|
80
|
+
// off Vite's resolve cache, making the run half again as slow.
|
|
81
|
+
server: { middlewareMode: true, hmr: false, ws: false, watch: { ignored: () => true } },
|
|
78
82
|
optimizeDeps: { noDiscovery: true, include: [] },
|
|
79
83
|
// Dependencies are bundled for SSR rather than imported by Node: view modules import
|
|
80
84
|
// components whose CommonJS dependencies (e.g. prop-types) Node cannot give named
|