Skip to content

Multiple entry points/output in library mode? #1736

Answered by yyx990803
utkarshkukreti asked this question in Q&A
Discussion options

You must be logged in to vote

library mode really is just a preset of rollup output options. You can check out https://github.com/vitejs/vite/blob/main/packages/vite/src/node/build.ts#L345-L372 to tweak it to fit your needs.

Replies: 16 comments 46 replies

Comment options

You must be logged in to vote
19 replies
@taily-khucnaykhongquantrong
@awacode21
Comment options

@raulfdm
Comment options

@thazhemadam
Comment options

@Jayesh-Mahato
Comment options

Answer selected by utkarshkukreti
Comment options

You must be logged in to vote
6 replies
@KingGanZeng
Comment options

@yooouuri
Comment options

@KarmaBlackshaw
Comment options

@KarmaBlackshaw
Comment options

@LinHanlove
Comment options

Comment options

You must be logged in to vote
3 replies
@kasvith
Comment options

@runlong-yao
Comment options

@tleunen
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@plmrry
Comment options

@akloster
Comment options

Comment options

You must be logged in to vote
3 replies
@tleunen
Comment options

@laurentlahmy
Comment options

@mrcego
Comment options

Comment options

You must be logged in to vote
5 replies
@paul-thebaud
Comment options

@emosheeep
Comment options

@KingGanZeng
Comment options

@emosheeep
Comment options

@wangcch
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GideonMax
Comment options

Comment options

You must be logged in to vote
5 replies
@ivancuric
Comment options

@mw-sezzle
Comment options

@sapondanaisriwan
Comment options

@ivancuric
Comment options

@Hobart2967
Comment options

Comment options

You must be logged in to vote
2 replies
@Swoorup
Comment options

@Swoorup
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet