Skip to content

Commit

Permalink
docs: Add hint in lib vite config, warning against using aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusBorg committed Nov 11, 2023
1 parent 6aa25e2 commit ffabdf3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/lib/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ import { fileURLToPath } from 'url'

export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
/*
* We recommend to not use aliases in the lib's source,
* because they will leak into the generated d.ts files and then
* break the lib's types in the consuming app.
*/
},
},
build: {
lib: {
name: 'Lib', // TODO: CHANGE_ME
Expand Down

0 comments on commit ffabdf3

Please sign in to comment.