jotai-devtools icon indicating copy to clipboard operation
jotai-devtools copied to clipboard

Update docs for conditional CSS import

Open kevinschaich opened this issue 1 month ago • 5 comments

I tried it like this first but it was complaining that an import has to be a top-level declaration:

if (process.env.NODE_ENV === 'development') {
    import('jotai-devtools/styles.css')
}

I also tried it with next/dynamic but no luck there.

kevinschaich avatar May 06 '24 21:05 kevinschaich