hannoeru / vite-plugin-pages

File system based route generator for ⚡️Vite
MIT License
1.84k stars 127 forks source link

Reduce the large bundle size #479

Closed Plumbiu closed 5 months ago

Plumbiu commented 5 months ago

Description

I use react and it doesn't use yaml or else, the original bundle size is over 1mb

image

Suggested solution

Export react, vue, sollid ... plugins, like:

import { reactPages, vuePages } from 'vite-plugin-pages'

Alternative

No response

Additional context

No response

Validations

hannoeru commented 5 months ago

That is frontend bundle size, not plugin it self. Because we are import pages in to one file that generate routes, you can use importMode async to reduce bundle size. Will close this as this is not a issue to this plugin. If you want some help you can open a Discussions to ask for help.