User tests: Successful: Unsuccessful:
Pull Request for Issue # .
type="module" for ES2015+ files or with an attribute nomodule for the old ES5 files. The sniffing is done in the browserWith this PR Joomla gets a proper way to serve ES2015+ code. Also, that code IS expected to be a module. The biggest change tho is that these files are lazily loaded, following the well established best practices. The way this is done is totally B/C.
If this in principal get's the green light, eg Production team decides that J4 should do things according to the well established best practices then I would suggest that most scripts should follow this pattern (now you might understand why I was always screaming to convert everything to Custom Elements). Let's move forward, ES6 is already 4 years old...
npm i and check the backend and the media manager (especially with IE11)
All Custom elements (the ES2015+ version) are modules now:

Enjoy!
| Status | New | ⇒ | Pending |
| Category | ⇒ | JavaScript Administration com_media NPM Change Repository Libraries |
| Title |
|
||||||
| Labels |
Added:
NPM Resource Changed
?
?
|
||
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-04-02 11:07:40 |
| Closed_By | ⇒ | dgrammatiko |