Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
docs: Update import specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoreis committed Oct 12, 2022
1 parent 98e354b commit 6331ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A [ponyfill](//github.com/sindresorhus/ponyfill) for using [dynamic imports](//d
## Example

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

if (Math.random() > 0.5) {
await importModule('./foo.ts')
Expand All @@ -24,7 +24,7 @@ if (Math.random() > 0.5) {
This module also exports an awesome function which evaluates code from a string containing `import` and `exports` statements.

```tsx
import { importString } from 'https://deno.land/x/dynamic_import_ponyfill@v0.1.5/mod.ts'
import { importString } from 'https://deno.land/x/import@v0.1.6/mod.ts'

console.log(await importString('export const foo = "bar"'))
```
Expand Down

0 comments on commit 6331ac3

Please sign in to comment.