UNPKG

create-cesiumjs

Version:

The recommended way to start a Vite-powered CesiumJS project

16 lines (14 loc) 408 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 ) } }