You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to provide related hook functions during pre-build scan to facilitate full compilation of the project
Suggested solution
There are many projects with front-end framework features that do not run in the browser, such as taroJS or uni-app applet-related front-end projects. The feature of this type of project is that all codes need to be compiled into specific files when they are first built.
Vite uses relevant browser features to achieve the effect of compiling after the request. Obviously, this kind of project cannot simulate the browser request, so I must scan the project and compile the full amount when Vite starts.
I found that vite provides the option of build --watch, but this does not have any advantage over webpack in terms of speed. I try to customize the scan with other tools, but this is equivalent to two pre-build scans.
So I hope that vite provides related hook functions during pre-build scan, so that the plug-in can choose whether to use esbuild for the full build when vite starts
The text was updated successfully, but these errors were encountered:
I'm not really sure what this feature request is asking. Do you want to pre-build certain files before the scan? Perhaps #6801 could work. I'd be keen to understand if you can elaborate with some examples.
Clear and concise description of the problem
I want to provide related hook functions during pre-build scan to facilitate full compilation of the project
Suggested solution
There are many projects with front-end framework features that do not run in the browser, such as taroJS or uni-app applet-related front-end projects. The feature of this type of project is that all codes need to be compiled into specific files when they are first built.
Vite uses relevant browser features to achieve the effect of compiling after the request. Obviously, this kind of project cannot simulate the browser request, so I must scan the project and compile the full amount when Vite starts.
I found that vite provides the option of
build --watch
, but this does not have any advantage over webpack in terms of speed. I try to customize the scan with other tools, but this is equivalent to two pre-build scans.So I hope that vite provides related hook functions during pre-build scan, so that the plug-in can choose whether to use esbuild for the full build when vite starts
The text was updated successfully, but these errors were encountered: