mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
21 lines
464 B
HTML
21 lines
464 B
HTML
<h1>preload</h1>
|
|
<div class="chunk"></div>
|
|
<div id="hello">
|
|
<button class="load">Load hello</button>
|
|
<div class="msg"></div>
|
|
</div>
|
|
<div id="about">
|
|
<button class="load">Load about</button>
|
|
<div class="msg"></div>
|
|
</div>
|
|
|
|
<script type="module">
|
|
import { msgFromA } from '@vitejs/test-dep-a'
|
|
console.log(msgFromA)
|
|
|
|
import './src/main.js'
|
|
document
|
|
.querySelector('h1')
|
|
.insertAdjacentHTML('afterEnd', '<div id="done">ran js</div>')
|
|
</script>
|