vite-plugin-vue2 icon indicating copy to clipboard operation
vite-plugin-vue2 copied to clipboard

Force resolution of vue causing dual package hazard in testing

Open kingyue737 opened this issue 3 years ago • 0 comments

According to https://github.com/vuejs/vue-test-utils/issues/1982#issuecomment-1201131222. https://github.com/vitejs/vite-plugin-vue2/commit/9a78726d77ef9aadf3c07dacd4c27828fe8f4ac8 forces resolution to entry vue/dist/vue.runtime.esm.js. But in test environment, vue.runtime.mjs should be used to avoid dual package hazard.

Maybe check the environment to conditionally override resolve.alias in this plugin?

kingyue737 avatar Aug 02 '22 07:08 kingyue737