Skip to content

Commit

Permalink
fix: make Buffer available in browser env
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph committed Aug 5, 2024
1 parent a04618a commit 43d39ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web-storybook/.storybook/preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ import React from 'react';
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
import { CssBaseline } from '@mui/material';
import { BrowserRouter as Router } from 'react-router-dom';
import { Buffer } from 'buffer';

import ThemeProvider from 'web-components/src/theme/RegenThemeProvider';
import 'web-components/src/theme/fonts.css';
import '../../tailwind.css';

window.Buffer = Buffer;

export const decorators = [
Story => (
<ThemeProvider injectFonts>
Expand Down

0 comments on commit 43d39ce

Please sign in to comment.