vitejs / vite-plugin-vue2

Vite plugin for Vue 2.7
MIT License
543 stars 46 forks source link

Separate js code from sfc #92

Closed Lee-42 closed 1 year ago

Lee-42 commented 1 year ago

Description

I try to separate the js logic of the sfc file into a file, and then import it through src But there is a problem with updating the page 1 2 3 4 This works fine with webpack

Suggested solution

Sometimes the js code logic is too long, or the js code is generated by other compilers, I don’t know how I should implement it

Alternative

No response

Additional context

No response

Validations

github-actions[bot] commented 1 year ago

Hello @Lee-42. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.