Skip to content

Instantly share code, notes, and snippets.

@iugo
Created June 2, 2021 10:33
Show Gist options
  • Save iugo/a7e2ac7655063284b173acbcb89f4bf9 to your computer and use it in GitHub Desktop.
Save iugo/a7e2ac7655063284b173acbcb89f4bf9 to your computer and use it in GitHub Desktop.
deno bundle (1.10.3) bug
import { dbPool } from "./webserver.ts";
export function d() {
dbPool;
}
import { d } from "./data.ts";
export default async function fn() {
d();
}
import { d } from "./data.ts";
export default async function fn() {
d();
}
import page1 from "./page1.ts";
import page2 from "./page2.ts";
export default function router() {
page1();
page2();
}
// run `deno bundle webserver.ts`
import router from "./router.ts";
export const dbPool = 1;
router();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment