blitz-js/superjson

superjson.registerCustom is not defined when "type": "module"

converter-user-old opened this issue · 3 comments

When i use "type": "module" in my package.json i get a error that the function is not defined.
Only if i use superjson.default.registerCustom then it works but TS will then complain.

See https://codesandbox.io/s/reverent-dream-4khu8b

@all-contributors please add @ruessej for bug

@Skn0tt

I've put up a pull request to add @ruessej! 🎉

released in 1.9.1! thank you @ruessej :)