Skip to content

[unplugin] Why using require('webpack-sources') instead of require('webpack').sources? #37

Answered by antfu
yoannmoinet asked this question in Q&A
Discussion options

You must be logged in to vote

It was a sync import, and I was trying not to include the whole webpack for every single unplugin. But as for now it's moved to lazy require, we could change to webpack then.

Replies: 2 comments 3 replies

Comment options

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

Answer selected by yoannmoinet
Comment options

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

@yoannmoinet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants