Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): load JavaScript bundles as module…
Browse files Browse the repository at this point in the history
…s in karma

With this change we load bundles as modules when using the Karma builder.

(cherry picked from commit 3512a03)
  • Loading branch information
alan-agius4 authored and clydin committed Jan 27, 2023
1 parent 317452e commit 6c8fdfc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
// All served files with the latest timestamps
%MAPPINGS%
</script>
<script src="_karma_webpack_/runtime.js" crossorigin="anonymous"></script>
<script src="_karma_webpack_/polyfills.js" crossorigin="anonymous"></script>
<script src="_karma_webpack_/runtime.js" crossorigin="anonymous" type="module"></script>
<script src="_karma_webpack_/polyfills.js" crossorigin="anonymous" type="module"></script>
<!-- Dynamically replaced with <script> tags -->
%SCRIPTS%
<script src="_karma_webpack_/scripts.js" crossorigin="anonymous"></script>
<script src="_karma_webpack_/vendor.js" crossorigin="anonymous"></script>
<script src="_karma_webpack_/main.js" crossorigin="anonymous"></script>
<script type="text/javascript">
<script src="_karma_webpack_/scripts.js" crossorigin="anonymous" defer></script>
<script src="_karma_webpack_/vendor.js" crossorigin="anonymous" type="module"></script>
<script src="_karma_webpack_/main.js" crossorigin="anonymous" type="module"></script>
<script type="module">
window.__karma__.loaded();
</script>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
// All served files with the latest timestamps
%MAPPINGS%
</script>
<script src="_karma_webpack_/runtime.js" crossorigin="anonymous"></script>
<script src="_karma_webpack_/polyfills.js" crossorigin="anonymous"></script>
<script src="_karma_webpack_/runtime.js" crossorigin="anonymous" type="module"></script>
<script src="_karma_webpack_/polyfills.js" crossorigin="anonymous" type="module"></script>
<!-- Dynamically replaced with <script> tags -->
%SCRIPTS%
<script src="_karma_webpack_/scripts.js" crossorigin="anonymous"></script>
<script src="_karma_webpack_/vendor.js" crossorigin="anonymous"></script>
<script src="_karma_webpack_/main.js" crossorigin="anonymous"></script>
<script type="text/javascript">
<script src="_karma_webpack_/scripts.js" crossorigin="anonymous" defer></script>
<script src="_karma_webpack_/vendor.js" crossorigin="anonymous" type="module"></script>
<script src="_karma_webpack_/main.js" crossorigin="anonymous" type="module"></script>
<script type="module">
window.__karma__.loaded();
</script>
</body>
Expand Down

0 comments on commit 6c8fdfc

Please sign in to comment.