MCPcopy
hub / github.com/freshframework/fresh / configureServer

Function configureServer

packages/plugin-vite/src/plugins/client_snapshot.ts:86–103  ·  view source on GitHub ↗
(devServer)

Source from the content-addressed store, hash-verified

84 });
85 },
86 configureServer(devServer) {
87 server = devServer;
88
89 server.watcher.on("add", (filePath) => {
90 if (!isIslandPath(options, filePath)) return;
91
92 islands.add(filePath);
93
94 invalidateSnapshots(server!);
95 });
96 server.watcher.on("unlink", (filePath) => {
97 if (!isIslandPath(options, filePath)) return;
98
99 islands.delete(filePath);
100
101 invalidateSnapshots(server!);
102 });
103 },
104 resolveId: {
105 filter: {
106 id: /fresh:client-snapshot/,

Callers

nothing calls this directly

Calls 4

isIslandPathFunction · 0.85
invalidateSnapshotsFunction · 0.85
addMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected