lunchboxjs icon indicating copy to clipboard operation
lunchboxjs copied to clipboard

Replace rollup build for Vite lib mode

Open alvarosabu opened this issue 2 years ago • 1 comments

Vitejs have a lib mode for build https://vitejs.dev/guide/build.html#library-mode that uses rollup underhood.

//vite.config.ts
export default defineConfig({
    plugins: [vue(), glsl(), vueJsx()],
    build: {
         lib: {
           entry: resolve(__dirname, 'src/index.ts'),
            name: 'lunchboxjs',
            fileName: 'tres',
         },
    },
})

As for demos, check #39

alvarosabu avatar Oct 31 '22 09:10 alvarosabu

Good catch, thanks! Marking this as lower-priority for now since the dev/build process is working atm, but this is definitely a good candidate for a future fix.

SaFrMo avatar Oct 31 '22 14:10 SaFrMo

(wontfix, new version - thanks though!)

SaFrMo avatar Jun 08 '24 20:06 SaFrMo