Skip to content
/ import Public

A dynamic imports polyfill for Deno Deploy and compiled executables

License

Notifications You must be signed in to change notification settings

ayoreis/import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

dynamic-import-ponyfill

A ponyfill for using dynamic imports within Deno Deploy.

import { importModule } from 'https://deno.land/x/dynamic_import_ponyfill@v0.1.2/mod.ts'

if (Math.random() > 0.5) {
    await importModule('./foo.ts')
} else {
    await importModule('./bar.ts')
}