INNER CODE UNIT · TypeScript

log

cloudflare/miniflare · packages/core/src/index.ts:580

            log = new Log(this.#ctx.log.level, { suffix: name });
          }
          const ctx: MiniflareCoreContext = {
            ...this.#ctx,
            log,
            // Never run mounts just for module exports as there may be plugins
            // in the parent depending on the mount's exports, and the mount
            // might not have plugins depending on its own exports
            scriptRunForModuleExports: false,
            // Mark this as a mount, so we defer calling reload() hooks,
            // see #reload()
            [kParentSharedCache]: this.#sharedCache,
          };
          mount = new MiniflareCore(this.#originalPlugins, ctx, mountOptions);
          mount.addEventListener("reload", async (event) => {
            // Reload parent (us) whenever mounted child reloads, ignoring the
            // initial reload. This ensures the page is reloaded when live
            // reloading, and also that we're using up-to-date Durable Object

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…