classes
classes copied to clipboard
Mitigate Meteor require warning.
When antd is used in Meteor, this warning shows up:
Unable to resolve some modules:
"indexof" in .../node_modules/component-classes/index.js (web.browser)
If you notice problems related to these missing modules, consider running:
meteor npm install --save indexof
This PR aims to get rid of it.
I have a simpler solution that works better with tools such as Rollup, which try to statically analyze the require() statements.
See: https://github.com/sholladay/classes/commit/adfdb84d9977403b4924801b68b354e5356ca0a6