And more importantly, doesn't do so for /safe. so importing it like import Colors from "colors/safe"; produces an error in some node configured environments. you'd have to import it like import Colors from "colors/safe.js";.
Didn't have the time to make a tested PR, just noted it for it in case, as a technical debt.
The
package.json
file doesn't provide the following props (the values are for example):And more importantly, doesn't do so for
/safe
. so importing it likeimport Colors from "colors/safe";
produces an error in some node configured environments. you'd have to import it likeimport Colors from "colors/safe.js";
.Didn't have the time to make a tested PR, just noted it for it in case, as a technical debt.
Example is from microbundle's README.