From b98533e0718dd5a3708eef32a7ad86c8d81422ba Mon Sep 17 00:00:00 2001 From: Tong Li Date: Sat, 30 Nov 2024 22:41:07 +1100 Subject: [PATCH] do not rollup @cosmjs/stargate because it does not work with pre-rendering in NextJs --- .changeset/happy-donkeys-walk.md | 5 +++++ vite.config.ts | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .changeset/happy-donkeys-walk.md diff --git a/.changeset/happy-donkeys-walk.md b/.changeset/happy-donkeys-walk.md new file mode 100644 index 0000000..8522b82 --- /dev/null +++ b/.changeset/happy-donkeys-walk.md @@ -0,0 +1,5 @@ +--- +"@babylonlabs-io/bbn-wallet-connect": patch +--- + +Re-add @cosmjs/stargate diff --git a/vite.config.ts b/vite.config.ts index f8fa1fa..375c7d9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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, },