In Chrome Canary 64 bits Version 61.0.3134.0, I enabled the experimental flag "Experimental Web Platform flag" as detailed in this post https://medium.com/dev-channel/es6-modules-in-chrome-canary-m60-ba588dfb8ab7.
This should allow me to use ES6 modules in the browser with no build step. My setup is very simple: I have 2 files:
My index.html:
<!DOCTYPE html> <html lang="en"> <head></head> <body> <script type="module" src="app.js"></script> </body> </html> and my app.js:
console.log('hello'); I can see in the network tab of Chrome Dev Tools that the app.js is loaded, but nothing happens in the console. No error message. However if I remove type="module" from the script tag, the message "hello" does shown up in the console.