mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 22:59:10 +00:00
30 lines
809 B
HTML
30 lines
809 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 Resolve Conditions</title>
|
|
</head>
|
|
<body>
|
|
<h1>SSR Resolve Conditions</h1>
|
|
<div id="app"><!--app-html--></div>
|
|
|
|
<script type="module">
|
|
import('@vitejs/test-ssr-conditions-no-external/server').then(
|
|
({ default: message }) => {
|
|
document.querySelector(
|
|
'.browser-no-external-react-server',
|
|
).textContent = message
|
|
},
|
|
)
|
|
|
|
import('@vitejs/test-ssr-conditions-external/server').then(
|
|
({ default: message }) => {
|
|
document.querySelector('.browser-external-react-server').textContent =
|
|
message
|
|
},
|
|
)
|
|
</script>
|
|
</body>
|
|
</html>
|