widgets
widgets copied to clipboard
Bug occurred when it's built
Bug Description
I used the widget with Vite. In dev mode, there is no problem, but when I built the project, the following error is occurred.
Versions
Vite: 4.4.5 React: 18.2.0 TypeScript: 5.0.2 @uniswap/widgets: 2.53.1 ...
Expected Behavior A clear and concise description of what you expected to happen.
Additional Context Add any other context about the problem here (screenshots, whether the bug only occurs only in certain mobile/desktop/browser environments, etc.)
import { nodePolyfills } from "vite-plugin-node-polyfills";
{
plugins: [nodePolyfills()],
}