smooth-scrollbar icon indicating copy to clipboard operation
smooth-scrollbar copied to clipboard

[Idea/v9] Use Vite instead of Webpack

Open idiotWu opened this issue 4 years ago • 3 comments

Discussed in https://github.com/idiotWu/smooth-scrollbar/discussions/401

Originally posted by sadeghbarati November 1, 2021 Vite is growing so fast, documentation and API is easy to understand, also have the easy configuration

Unlike Webpack documentation and API are difficult to understand

Compiled js with Webpack have unnecessary code or unwanted polyfills

idiotWu avatar Nov 01 '21 10:11 idiotWu

You can use - https://github.com/unjs/unplugin - to cover both with one codebase if needed. A alot of usefull tools in https://github.com/unjs

Hope it helps :)

aussieboi avatar Oct 20 '22 11:10 aussieboi

Thanks for ur idea,

Yeah, When I used unbuild, I tried to change the proposal I had given Best option, for now, is unbuild or rollup or tsup

all of these tools are great, with vite, you can put the other configuration files inside the Vite config file itself like vitest ( which is for unit-testing but it's can be configured for e2e with other tools like playwright, cypress and others )

sadeghbarati avatar Oct 20 '22 12:10 sadeghbarati

support vite +1

leosin avatar Dec 02 '22 05:12 leosin