vite/playground/ssr-deps/index.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
904 B
HTML
Raw Normal View History

<!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>