fix: plugins not loaded with legacy dev (#1764)

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
Tomofumi Chiba
2023-09-13 16:09:50 +02:00
committed by GitHub
co-authored by Marvin Hagemeister
parent 42dc54500c
commit ec2f785455
14 changed files with 149 additions and 10 deletions
+5 -1
View File
@@ -165,7 +165,11 @@ export class ServerContext {
// Restore snapshot if available
let snapshot: BuildSnapshot | null = null;
// Load from snapshot if not explicitly requested not to
const loadFromSnapshot = !opts.skipSnapshot;
let loadFromSnapshot = !opts.skipSnapshot;
// We still need to check for a legacy entry point :S
if (Deno.env.has("__FRSH_LEGACY_DEV")) {
loadFromSnapshot = false;
}
if (loadFromSnapshot) {
const snapshotDirPath = join(
dirname(fromFileUrl(manifest.baseUrl)),