Skip to content

Commit 9cc327d

Browse files
committed
docs: update alias info
1 parent 076c123 commit 9cc327d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,18 @@ If true, it enables import prefixes:
271271
- `@/*`
272272
- `~/*`
273273

274+
```ts
275+
// bundler.config.ts
276+
277+
import { defineConfig } from '@hypernym/bundler'
278+
279+
export default defineConfig({
280+
alias: true,
281+
})
282+
```
283+
284+
After that it can be imported as:
285+
274286
```ts
275287
// Imports module from './src/utils/index.js'
276288
import { module } from '@/utils/index.js'

0 commit comments

Comments
 (0)