Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Eitan Elbaz authored and Eitan Elbaz committed Nov 21, 2023
1 parent 591c2fa commit d094da8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ export default defineConfig({
minify: true,
reportCompressedSize: true,
lib: {
entry: path.resolve(__dirname, 'src/index.ts'),
fileName: 'main',
formats: ['es', 'cjs'],
name: 'ReactGrandTour',
entry: {
'react-grand-tour': 'src/index.ts',
},
},
rollupOptions: {
external: ['react', 'react-dom'],
Expand Down

0 comments on commit d094da8

Please sign in to comment.