How to add Vite in my already existing Lightning Application?

Can anyone help me in adding Vite to my existing project?

@amalmohann Are you bringing your own bundler or using the Lightning CLI bundler? In the case you are bringing your own, you should be able to use Vite as your bundler very easily by replacing your existing bundling solution with it. If you are using the Lightning CLI, it only supports a built-in configuration using Esbuild or Rollup.

I’m using lightning Bundler as of right now. Need to add vite. can you please give me steps to do so?

  1. How to add vite to already existing lighting application ?
  2. How to add Vite to a new lightning Application?
1 Like