mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
25 lines
526 B
HTML
25 lines
526 B
HTML
<h1>Optimize Deps</h1>
|
|
|
|
<h2>Optimized Dep</h2>
|
|
<div class="optimized-dep"></div>
|
|
|
|
<h2>Vue & Vuex</h2>
|
|
<div class="vue"></div>
|
|
|
|
<script>
|
|
function text(el, text) {
|
|
document.querySelector(el).textContent = text
|
|
}
|
|
</script>
|
|
|
|
<script type="module">
|
|
import msg from '@vitejs/test-dep-no-discovery'
|
|
text('.optimized-dep', msg)
|
|
|
|
import { createApp } from 'vue'
|
|
import { createStore } from 'vuex'
|
|
if (typeof createApp === 'function' && typeof createStore === 'function') {
|
|
text('.vue', '[success]')
|
|
}
|
|
</script>
|