fix: json import attribute error in island (#2228)
Fixes https://github.com/denoland/fresh/issues/2214
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import json from "./data.json" with { type: "json" };
|
||||
|
||||
export default function JsonIsland() {
|
||||
return <pre>{JSON.stringify(json,null, 2)}</pre>;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo": "it works"
|
||||
}
|
||||
Reference in New Issue
Block a user