immerjs / immer

Create the next immutable state by mutating the current one

Home Page:https://immerjs.github.io/immer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configure rollup

bledson opened this issue Β· comments

πŸ™‹β€β™‚ Question

I'm trying to use lit (using rollup) with immer, but I receive the following error:

ReferenceError: process is not defined

What is the correct way to configure rollup?

Environment

  • Immer version:10.1.1
  • Occurs with setUseProxies(true)
  • Occurs with setUseProxies(false) (ES5 only)