Skip to content

Commit

Permalink
Tweak the position of the modules
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Feb 13, 2022
1 parent 1c4cb68 commit 53b830e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions resources/views/tags.blade.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
<script type="importmap" data-turbo-track="reload"@if ($nonce) nonce="{{ $nonce }}" @endif>
@js($importmaps)
</script>

@foreach ($preloadedModules as $preloadedModule)
<link rel="modulepreload" href="{{ $preloadedModule }}"@if ($nonce) nonce="{{ $nonce }}"@endif />
@endforeach

@if (config('importmap.use_shim'))
<link rel="modulepreload" href="https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js"@if ($nonce) nonce="{{ $nonce }}"@endif />
@if ($nonce) <script type="esms-options" nonce="{{ $nonce }}">{"nonce":"{{ $nonce }}"}</script> @endif
<script async src="https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js" data-turbo-track="reload"@if ($nonce) nonce="{{ $nonce }}"@endif></script>
@endif

<script type="importmap" data-turbo-track="reload"@if ($nonce) nonce="{{ $nonce }}" @endif>
@json($importmaps)
</script>

<script type="module" data-turbo-track="reload"@if ($nonce) nonce="{{ $nonce }}" @endif>
import {{ $entrypoint }} from '{{ $entrypoint }}';
</script>
<script type="module" data-turbo-track="reload"@if ($nonce) nonce="{{ $nonce }}" @endif>import '{{ $entrypoint }}';</script>

0 comments on commit 53b830e

Please sign in to comment.