Allow ES2015 modules in MVC PageBuilder inline editor scripts
It's frankly ridiculous that if I have an "import" statement in a script registering an inline editor for use in PageBuilder widgets, that import statement is not detected; either directly via a quick check of the scripts content (hint: its always the first word if its there at all) or via the commonly used file extension ".mjs".
All that needs to happen to enable this feature is for the page builder to detect the use of this feature one way or another and add "type='module'" to the script tag that the page builder is already adding!
Sean Wright commented
Not only are ES Modules not supported, but certain ES2015 features completely break the System.Web.Optimization bundling process (it will throw a runtime exception).