Closed eltonjuan closed 7 years ago
@capaj I noticed you committed the original change, am I correct in my assessment?
Yes it should be built to be es2015 compatible.re-bulma also uses jsx and stage-1 so we're definitely missing a build step there. Will try to open a fixing PR.
@eltonjuan fixing PR here: #74
Thanks for the quick turnaround! 👍
Added with this commit aee8cbc9ec1a0bf8d64121750fc2f0cc0e4b97a2 , it seems that re-bulma is incorrectly using the
module
field inpackage.json
. Using webpack2, re-bulma is failing to build because themodule
field is pointing tosrc/index.js
which is a file that requires transpilation.Correct me if I'm wrong, but all of my research on the topic leads me to believe that the
module
field should still be built & transpiled, leaving only the ES2015 module syntax in tact (i.e.import
andexport
are okay, but as a consumer we still need you to transpile / build your code). If you look atredux
, they have a build step that transpiles their code usingbabel
, but leaves the es6 module syntax in place.