vite/playground/ssr-deps/index.html
renovate[bot] 5a56941a89
chore(deps): update dependency prettier to v3 (#13759)
Co-authored-by: Arnaud Barré <arnaud.barre@carbometrix.com>
2023-07-19 09:53:25 +02:00

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>