Last active
July 20, 2022 13:20
-
-
Save kurt-liao/7874bc7d5ab58f08b05e3f15f9523a60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// awaiting.mjs | |
import { process } from "./some-module.mjs"; | |
let output; | |
async function main() { | |
const dynamic = await import(computedModuleSpecifier); | |
const data = await fetch(url); | |
output = process(dynamic.default, data); | |
} | |
main(); | |
export { output }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment