We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1350aa commit 900138aCopy full SHA for 900138a
vite.config.ts
@@ -18,7 +18,7 @@ export default defineConfig({
18
lib: {
19
entry: resolve(__dirname, 'src/index.ts'), // Library entry point
20
name: 'ReactSharedStates',
21
- fileName: (format: string) => `main${format === 'es' ? '' : '.min'}.js`,
+ fileName: (format: string) => `main${format === 'es' ? '.esm' : '.min'}.js`,
22
formats: ['es', 'umd']
23
},
24
rollupOptions: {
0 commit comments