Skip to content

Commit

Permalink
fix: cjs build only
Browse files Browse the repository at this point in the history
  • Loading branch information
jeangovil committed May 24, 2023
1 parent c05904a commit 37991fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lsd-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/lsd-react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 37991fa

Please sign in to comment.