diff --git a/packages/lsd-react/package.json b/packages/lsd-react/package.json index 4933bfa..b5a1f99 100644 --- a/packages/lsd-react/package.json +++ b/packages/lsd-react/package.json @@ -2,7 +2,7 @@ "name": "@acid-info/lsd-react", "version": "0.1.0-alpha.5", "types": "./dist/index.d.ts", - "main": "./dist/lsd-react.mjs", + "main": "./dist/lsd-react.js", "require": "./dist/lsd-react.umd.js", "scripts": { "dev": "vite", diff --git a/packages/lsd-react/vite.config.ts b/packages/lsd-react/vite.config.ts index 20bcf98..007ba92 100644 --- a/packages/lsd-react/vite.config.ts +++ b/packages/lsd-react/vite.config.ts @@ -24,6 +24,7 @@ export default defineConfig({ entry: path.resolve(__dirname, './src/index.ts'), name: 'lsd-react', fileName: 'lsd-react', + formats: ['cjs', 'umd'], }, rollupOptions: { external: ['react', 'react-dom', '@emotion/styled', '@emotion/react'],