vite-plugin-vue2
vite-plugin-vue2 copied to clipboard
Force resolution of vue causing dual package hazard in testing
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?