index.dist.html — vite Source File
Architecture documentation for index.dist.html, a html file in the vite codebase.
Entity Profile
Source Code
<!-- the production demo page, copied into dist/ -->
<div class="es"></div>
<div class="umd"></div>
<div class="iife"></div>
<div class="dynamic-import-message"></div>
<script>
// shim test preserve process.env.NODE_ENV
globalThis.process = {
env: {
NODE_ENV: 'production',
},
}
</script>
<script type="module">
import myLib from './my-lib-custom-filename.js'
myLib('.es')
</script>
<script type="module">
import message from './lib/dynamic-import-message.es.mjs'
message('.dynamic-import-message')
</script>
<script src="./my-lib-custom-filename.umd.cjs"></script>
<script>
MyLib('.umd')
delete window.MyLib // so that it won't affect iife
</script>
<script src="./my-lib-custom-filename.iife.js"></script>
<script>
MyLib('.iife')
</script>
Source
Frequently Asked Questions
What does index.dist.html do?
index.dist.html is a source file in the vite codebase, written in html.
Where is index.dist.html in the architecture?
index.dist.html is located at playground/lib/index.dist.html (directory: playground/lib).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free