Open fskreuz opened 7 years ago
Chrome Canary now supports ES module loading. However, if the module is served with an incorrect JS mimetype or does not have a .js extension (i.e. .mjs), the browser will load the module but will ignore it and halt the application.
.js
.mjs
At the moment, lite-server serves .mjs as Content-Type:application/octet-stream.
Content-Type:application/octet-stream
lite-server
nodejs
npm
Chrome Canary now supports ES module loading. However, if the module is served with an incorrect JS mimetype or does not have a
.js
extension (i.e..mjs
), the browser will load the module but will ignore it and halt the application.At the moment, lite-server serves
.mjs
asContent-Type:application/octet-stream
.Environment
lite-server
version: 2.3.0nodejs
version: 8.0.0npm
version: 5.0.0