From a306c2cc6a4da10c76ea7f0375907ad40aa4c68f Mon Sep 17 00:00:00 2001 From: Matthew Glissmann Date: Wed, 24 Jul 2024 13:06:29 -0600 Subject: [PATCH] add cjs to library build (#125) --- grommet-leaflet/vite.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/grommet-leaflet/vite.config.js b/grommet-leaflet/vite.config.js index 6c23510..bcd4ac3 100644 --- a/grommet-leaflet/vite.config.js +++ b/grommet-leaflet/vite.config.js @@ -11,6 +11,7 @@ export default defineConfig({ entry: resolve(__dirname, 'src/index.js'), name: 'grommet-leaflet', fileName: 'grommet-leaflet', + formats: ['es', 'cjs', 'umd'], }, rollupOptions: { // externalize deps that shouldn't be bundled with library