mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
5a56941a89
Co-authored-by: Arnaud Barré <arnaud.barre@carbometrix.com>
27 lines
904 B
HTML
27 lines
904 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>SSR Dependencies</title>
|
|
</head>
|
|
<body>
|
|
<h1>SSR Dependencies</h1>
|
|
<div><!--app-html--></div>
|
|
<script type="module">
|
|
// hydration scripts
|
|
import '@vitejs/test-css-lib'
|
|
</script>
|
|
<script type="module">
|
|
// Using dynamic import, so the module is transformed when browser actually
|
|
// requests it. This essentially disables pre-transform optimization that's
|
|
// crucial to trigger a race condition, covered by the test case introduced
|
|
// in https://github.com/vitejs/vite/pull/11973
|
|
import('virtual:isomorphic-module').then(({ default: message }) => {
|
|
document.querySelector('.isomorphic-module-browser').textContent =
|
|
message
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|