This repo is a minimal reproduction of an issue with Zustand and Parcel.
- Clone this repo
- Run
pnpm install
- Run
pnpm build
- Open
dist/index.html
in a browser (via Live Server or similar)
Note that the page will not load, and the console will show the following error:
app.js:3 Uncaught TypeError: (0 , i.create) is not a function
at app.js:3:22
(This issue only happens in production mode. If you run pnpm dev
and open the page in a browser, it will work fine.)