Created
July 20, 2022 13:21
-
-
Save kurt-liao/eebcd8c9457a2d4c91f3fc18b6492a95 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; | |
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