underfin / vite-plugin-vue2

Vue2 plugin for Vite
621 stars 84 forks source link

fix: #162 #163

Closed dongj0316 closed 2 years ago

dongj0316 commented 2 years ago

162

antfu commented 2 years ago

Can you provide more info about why this is necessary?

dongj0316 commented 2 years ago

OK, I'm upgrading the vue2 project to vite. I need to use a lower version of the browser for local development and debugging. For example, I used the Optional chaining operator in the project, and encountered problems during local debugging in 360 browser, so I found this solution https://github.com/vitejs/vite/issues/5222 , and then I encountered this problem

underfin commented 2 years ago

@dongj0316 Esbuild only check your file, you should use synax transform plugin. This pr will not resolve your original issue.