removed legacy code

Massimo Melina committed Feb 7, 2025 at 15:18 UTC 5d395212df1e3d932dfb31aa59f1538d216150c6
1 file changed -2
src/plugins.ts
-2
@@ -570,8 +570,6 @@ function setError(id: string, error: string) {
570
571 function deleteModule(id: string) {
572 const { cache } = require
573 - if (!cache) // bun 0.6.2 doesn't have it
574 - return console.warn("plugin may be not reloaded correctly")
573 // build reversed map of dependencies
574 const requiredBy: Record<string,string[]> = { '.':['.'] } // don't touch main entry
575 for (const k in cache)