mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
- load async chunk CSS and nested imports in parallel to the main chunk - ensure CSS loaded before evaluating main chunk
9 lines
208 B
JavaScript
9 lines
208 B
JavaScript
import './async.css'
|
|
|
|
const div = document.createElement('div')
|
|
div.className = 'async'
|
|
document.body.appendChild(div)
|
|
div.textContent = `async chunk (this should be teal) ${
|
|
getComputedStyle(div).color
|
|
}`
|