Skip to content

Commit

Permalink
docs: fix genImport example with default name (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsypower committed Mar 29, 2024
1 parent 247b32b commit 0888c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -36,8 +36,8 @@ console.log(genImport('pkg', ['foo']))
// import { a, b } from "pkg"
console.log(genImport('pkg', ['a', 'b']))

// import foo as bar from "pkg";
console.log(genImport('pkg', { name: 'foo', as: 'bar' }))
// import { default as bar } from "pkg";
console.log(genImport('pkg', [{ name: 'default', as: 'bar' }]))

// import { foo as bar } from "pkg";
console.log(genImport('pkg', [{ name: 'foo', as: 'bar' }]))
Expand Down

0 comments on commit 0888c36

Please sign in to comment.