Skip to content

Instantly share code, notes, and snippets.

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