veryfront 0.1.713 → 0.1.714
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.
package/esm/deno.js
CHANGED
|
@@ -210,21 +210,21 @@ export async function bootstrap(projectDir, adapter) {
|
|
|
210
210
|
bootstrapLog.debug("Initializing FSAdapter", { type: fsType });
|
|
211
211
|
// Inject server-layer callbacks into FS config so the platform layer
|
|
212
212
|
// doesn't need to import from the server layer
|
|
213
|
-
const configuredFs = config.fs;
|
|
213
|
+
const configuredFs = (config.fs ?? {});
|
|
214
214
|
const fsWithCallbacks = {
|
|
215
|
-
...
|
|
215
|
+
...configuredFs,
|
|
216
216
|
invalidationCallbacks: {
|
|
217
217
|
...createServerStyleInvalidationCallbacks(),
|
|
218
|
-
...configuredFs
|
|
218
|
+
...configuredFs.invalidationCallbacks,
|
|
219
219
|
triggerReload: (changedPaths, project) => ReloadNotifier.triggerReload(changedPaths, project),
|
|
220
220
|
clearDomainCache,
|
|
221
221
|
},
|
|
222
222
|
styleCallbacks: {
|
|
223
223
|
...createServerStyleCallbacks(),
|
|
224
|
-
...configuredFs
|
|
224
|
+
...configuredFs.styleCallbacks,
|
|
225
225
|
},
|
|
226
226
|
};
|
|
227
|
-
const enhancedAdapter = await enhanceAdapterWithFS(adapter, {
|
|
227
|
+
const enhancedAdapter = await enhanceAdapterWithFS(adapter, { fs: fsWithCallbacks }, projectDir);
|
|
228
228
|
if (enhancedAdapter === adapter) {
|
|
229
229
|
bootstrapLog.debug("Framework initialized successfully", {
|
|
230
230
|
projectDir,
|