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.
5 lines
No EOL
296 B
Text
5 lines
No EOL
296 B
Text
@namespace LANCommander.UI.Components
|
|
|
|
<script type="module" src="/_content/LANCommander.UI/bundle.js"></script>
|
|
<script src="/_content/PSC.Blazor.Components.MarkdownEditor/js/easymde.min.js"></script>
|
|
<script src="/_content/PSD.Blazor.Components.MarkdownEditor/js/markdownEditor.js"></script> |