bundle.js is built by webpack as an ES module (output.library.type:
'module'), ending with named exports such as:
export { Be as ChunkUploader, s as InfiniteScroll, ... }
All three inclusion sites (App.razor, _Layout.cshtml,
ScriptLoader.razor) loaded it via a plain <script> tag, which is for
classic scripts only and does not support the 'export' keyword.
Edge throws a visible SyntaxError and uploading does not work.
Fixed by adding type="module" to the bundle.js script tag in all three
locations.
|
||
|---|---|---|
| .. | ||
| ScriptLoader.razor | ||
| StylesheetLoader.razor | ||