Skip to content

Instantly share code, notes, and snippets.

@kurt-liao
Created July 20, 2022 13:31
Show Gist options
  • Save kurt-liao/353e711a4e4d4428c9adcedfe0ff7c31 to your computer and use it in GitHub Desktop.
Save kurt-liao/353e711a4e4d4428c9adcedfe0ff7c31 to your computer and use it in GitHub Desktop.
// awaiting.mjs
import { process } from "./some-module.mjs";
const dynamic = import(computedModuleSpecifier);
const data = fetch(url);
export const output = process((await dynamic).default, await data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment