ES6 modules in the browser: Uncaught SyntaxError: Unexpected token import

Many modern browsers now support ES6 modules. As long as you import your scripts (including the entrypoint to your application) using <script type="module" src="https://stackoverflow.com/questions/41722621/..."> it will work.

Take a look at caniuse.com for more details:
https://caniuse.com/#feat=es6-module

Leave a Comment