preact-compat2
v0.1.0
Published
preact-compat without prop-types
Downloads
138
Maintainers
Readme
preact-compat2
preact-compat without prop-types.
Why Make preact-compat2
prop-types do not support esm versions, so rollup raises the following error:
[!] Error: 'default' is not exported by node_modules/prop-types/index.js
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module-
node_modules/preact-compat/dist/preact-compat.es.js (1:7)
1: import PropTypes from 'prop-types';
Of course, you can change the setting, but you do not use prop-types
, so I made this because of an error.
⚙️ Installation
npm
$ npm install preact-compat2
🚀 How to use
- See https://github.com/developit/preact-compat
📝 License
This project is MIT licensed.