UNPKG

create-vue

Version:

🛠️ The recommended way to start a Vite-powered Vue project

16 lines (14 loc) 396 B
export default function getData({ oldData }) { const vueJsxPlugin = { name: 'vueJsx', importer: "import vueJsx from '@vitejs/plugin-vue-jsx'", initializer: 'vueJsx()', } return { ...oldData, // Append the vueJsx plugin right after the vue plugin plugins: oldData.plugins.flatMap((plugin) => plugin.id === 'vue' ? [plugin, vueJsxPlugin] : plugin, ), } }