Skip to content

Commit

Permalink
fix: transpile esm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Dec 17, 2024
1 parent cf55389 commit a10b8ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
transpilePackages: ['@cosmos-kit/web3auth'],
reactStrictMode: true,
swcMinify: true,
images: {
Expand Down
3 changes: 1 addition & 2 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import '@fontsource/manrope';

import type { AppProps } from 'next/app';
import { createPortal } from 'react-dom';
import { SignData } from '@cosmos-kit/web3auth';
import { makeWeb3AuthWallets } from '@cosmos-kit/web3auth/esm/index'; // Leave this as is or you will get an error at compile time
import { makeWeb3AuthWallets, SignData } from '@cosmos-kit/web3auth';
import { useEffect, useMemo, useState } from 'react';
import SignModal from '@/components/react/authSignerModal';
import { manifestAssets, manifestChain } from '@/config';
Expand Down

0 comments on commit a10b8ed

Please sign in to comment.