Skip to content

Commit

Permalink
do not rollup @cosmjs/stargate because it does not work with pre-rend…
Browse files Browse the repository at this point in the history
…ering in NextJs
  • Loading branch information
supertong committed Nov 30, 2024
1 parent 34d2c9e commit b98533e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/happy-donkeys-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@babylonlabs-io/bbn-wallet-connect": patch
---

Re-add @cosmjs/stargate
9 changes: 8 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ export default defineConfig({
fileName: (format) => `index.${format}.js`,
},
rollupOptions: {
external: ["react", "react-dom", "react/jsx-runtime", "tailwind-merge", "@babylonlabs-io/bbn-core-ui"],
external: [
"react",
"react-dom",
"react/jsx-runtime",
"tailwind-merge",
"@babylonlabs-io/bbn-core-ui",
"@cosmjs/stargate",
],
output: {
sourcemapExcludeSources: true,
},
Expand Down

0 comments on commit b98533e

Please sign in to comment.