module
field in package.json should not point to fully uncompiled version
#13
Labels
module
field in package.json should not point to fully uncompiled version
#13
The
module
field inpackage.json
should point to a version ofreact-element-portal
that has ES2015 module syntax but otherwise only syntax features that the target environments support.Since
react-element-portal
uses syntax like object rest spread which not all target environments support, those should be compiled before publishing.More info on rationale here: https://github.com/rollup/rollup/wiki/pkg.module#wait-it-just-means-import-and-export--not-other-future-javascript-features
Most end-users that consume
react-element-portal
viamodule
field will trip up on this bug, since it's very common to not compile modules fromnode_modules
. Example error:While we're at it we might also consider switching the build step to use Rollup instead of plain babel.
The text was updated successfully, but these errors were encountered: