ItsJonQ / g2

✨ An experimental reimagining of WordPress components
http://g2-components.com/
MIT License
105 stars 12 forks source link

Build: Babel Runtime + Browsers List #228

Closed ItsJonQ closed 3 years ago

ItsJonQ commented 3 years ago

This update instructs babel to compile with runtime.

In the substate build, we can see that zustand/middleware now looks like this:

    (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
      var postRehydrationCallback, storageValue, deserializedStorageValue;

I tested library consumption with 0.0.135-alpha.x .

I think it's okay: https://codesandbox.io/s/sweet-sanderson-fkvj6?file=/src/App.js

I've also tested it on: https://status.g2-components.com/

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/itsjonq/g2/451w35wrb
✅ Preview: https://g2-git-update-build-runtime.itsjonq.vercel.app