repl
repl copied to clipboard
feat: import css or json from import-maps or http
import 'foo/style.css' --> <link rel="stylesheet" href="" />
, href is import.meta.resolve('foo/style.css')
import 'http://127.0.0.1/style.css' --> <link rel="stylesheet" href="http://127.0.0.1/style.css" />
import data from 'foo/data.json' --> const data = await (await fetch(import.meta.resolve('foo/data.json'))).json()
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
repl | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 21, 2023 0:12am |