menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

geist-deprecated

Redirect to https://github.com/geist-org/react/discussions

Channels
Team

Minimize build

November 10, 2020 at 10:21pm
Hi, i'm using Geist-UI with Next.js. If i add the ThemeProvider (no _document css flush ) in _app, automatically the build increase 60kb. How can i decrease the output build size file? Thanks.

November 12, 2020 at 5:22pm
I'm working with Next.js, and if i do the docs example for tree-shaking, i get this error:
``````
import Button from './button';
^^^^^^
SyntaxError: Cannot use import statement outside a module
The solution is:
Change this:
import Button from '@geist-ui/react/esm/button'
to
// location of node_modules project
import Button from '../../../../node_modules/@geist-ui/react/esm/button';