This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mylesborins
Recipients asvetlov, barry, bradleymeck, christian.heimes, mylesborins, r.david.murray
Date 2018-12-05.20:29:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <33876DA2-59C3-46EE-AD6B-1AFAACEF39D8@google.com>
In-reply-to <1544037819.6.0.788709270274.issue31715@psf.upfronthosting.co.za>
Content
There are a number of tutorials that suggest using the .mjs extension for working with ESM modules for front end development.

https://developers.google.com/web/fundamentals/primers/modules <https://developers.google.com/web/fundamentals/primers/modules>
https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/ <https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/>

There are many tutorials that suggest web developers use `python -m SimpleHTTPServer` as a way to spin up a quick development server.  If a .mjs file is not served with the correct mime type <https://html.spec.whatwg.org/multipage/infrastructure.html#javascript-mime-type> the browser will throw when trying to load the module, and the error is not the most obvious if developers are not aware of what mime types even are.

As such I would like propose that this is a bug fix, rather than a feature, as popular browser workflow is going to be broken without an obvious way to fix it for anyone using python right now.

> On Dec 5, 2018, at 2:23 PM, Christian Heimes <report@bugs.python.org> wrote:
> 
> 
> Christian Heimes <lists@cheimes.de> added the comment:
> 
> It's technically a new feature. New features are not added to existing releases unless there is a very compelling reason.
> 
> ----------
> nosy: +christian.heimes
> 
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue31715>
> _______________________________________
History
Date User Action Args
2018-12-05 20:29:51mylesborinssetrecipients: + mylesborins, barry, christian.heimes, r.david.murray, asvetlov, bradleymeck
2018-12-05 20:29:51mylesborinslinkissue31715 messages
2018-12-05 20:29:51mylesborinscreate