Closed alextompkins closed 7 months ago
I've opened a PR (https://github.com/GoncharukBro/react-input/pull/18), based on my testing this resolves the issues with preact compatability :)
Thanks for opening the topic, please update the package to the latest version, which solves this problem:
npm i @react-input/mask@latest
It is best practice to externalize all node_modules imports in a library. I can see that you're already doing this correctly for
react
, but you have not externalizedreact/jsx-runtime
. This means thatdist/module/InputMask.js
(and the commonjs equivalent file) ends up with the entire React jsx-runtime injected into it, as you can see here.This causes problems for me because I'm trying to use your package with
preact
, and I should be able to aliasreact/jsx-runtime
topreact/jsx-runtime
- but I can't if it is already inlined. It also causes unnecessary bloat in your package.