You may want to have a look at https://npmjs.com/package/ol, which provides ES6 modules and examples for using OpenLayers with mainstream bundlers.
This is still work in progress, and feedback is welcome. Please post feedback as comments on GitHub issue https://github.com/openlayers/openlayers/pull/6302. Andreas. On Mon, Jan 9, 2017 at 10:36 AM, Viggo Lunde via OpenLayers Dev <openlayers-dev+apn2wqcpo-8uyu_v2upd-1nylhxzotdvzib1utq8_rch59...@googlegroups.com> wrote: > Hi > Is it possible to use openlayers with ES6? > Is there an example? A simple react app? > > Best regards > Viggo Lunde > > -- > You received this message because you are subscribed to the Google Groups > "OpenLayers Dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to openlayers-dev+unsubscr...@googlegroups.com. > To post to this group, send email to openlayers-dev@googlegroups.com. > Visit this group at https://groups.google.com/group/openlayers-dev. > To view this discussion on the web visit > https://groups.google.com/d/msgid/openlayers-dev/2cfc5e15-82c6-43ca-9e35-27d79b1341a1%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "OpenLayers Dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to openlayers-dev+unsubscr...@googlegroups.com. To post to this group, send email to openlayers-dev@googlegroups.com. Visit this group at https://groups.google.com/group/openlayers-dev. To view this discussion on the web visit https://groups.google.com/d/msgid/openlayers-dev/CAOiJ94iCG_k6YRbNOGwE11pzUZhJ-80vsZMBPgR8zbgXkfzAaw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.