repl icon indicating copy to clipboard operation
repl copied to clipboard

feat: import css or json from import-maps or http

Open Thy3634 opened this issue 2 years ago • 1 comments

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()

Thy3634 avatar Feb 14 '23 15:02 Thy3634

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

vercel[bot] avatar Jun 26 '23 09:06 vercel[bot]