2021-12-02 08:54:48 +00:00
|
|
|
<!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>
|
2022-08-09 09:15:12 +00:00
|
|
|
<script type="module">
|
|
|
|
// hydration scripts
|
|
|
|
import '@vitejs/test-css-lib'
|
|
|
|
</script>
|
2023-06-15 05:27:09 +00:00
|
|
|
<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>
|
2021-12-02 08:54:48 +00:00
|
|
|
</body>
|
|
|
|
</html>
|