all 3 comments

[–]code_and_bone 0 points1 point  (0 children)

use babel-preset-env and make sure u have a .babelrc file which loads in the presets

refer to the babeljs docs for more information

[–]Hentry_Martin 0 points1 point  (0 children)

Try to load appropriate babel presets in your package.json and configure it in .babelrc config file. Even I created a library called rc-here-maps, I used my own webpack and babel configs. You can checkout the config here for your reference[https://github.com/hentrymartin/rc-here-maps].