Skip to content

Commit

Permalink
Merge pull request #18 from nabla-studio/DavideSegullo/fix-exports
Browse files Browse the repository at this point in the history
chore(react): 🔧 add preserve module
  • Loading branch information
DavideSegullo authored Nov 13, 2023
2 parents 238d363 + e985a1a commit e83e64a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
],
"version": "0.3.7",
"sideEffects": false,
"type": "module",
"dependencies": {
"@quirks/store": "*",
"@quirks/core": "*"
Expand Down
3 changes: 3 additions & 0 deletions packages/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export default defineConfig({
formats: ['es', 'cjs'],
},
rollupOptions: {
output: {
preserveModules: true,
},
// External packages that should not be bundled into your library.
external: [
'react',
Expand Down

0 comments on commit e83e64a

Please sign in to comment.