preact-compat2
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

preact-compat2

npm version

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

📝 License

This project is MIT licensed.

Package Sidebar

Install

npm i preact-compat2

Weekly Downloads

19

Version

0.1.0

License

MIT

Unpacked Size

44.9 kB

Total Files

16

Last publish

Collaborators

  • younkue