feat: use import maps instead of deps files (#209)
This commit updates fresh to use import maps instead of deps files in generated projects.
This commit is contained in:
@@ -1 +0,0 @@
|
||||
export * from "../../runtime.ts";
|
||||
@@ -1 +0,0 @@
|
||||
export * from "../../server.ts";
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"imports": {
|
||||
"$fresh/": "../../"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
/// <reference lib="deno.ns" />
|
||||
/// <reference lib="deno.unstable" />
|
||||
|
||||
import { start } from "./deps.server.ts";
|
||||
import { start } from "$fresh/server.ts";
|
||||
import manifest from "./fresh.gen.ts";
|
||||
|
||||
await start(manifest);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/** @jsx h */
|
||||
import { h } from "../deps.client.ts";
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
|
||||
export default function Home(): null {
|
||||
throw new Error("boom!");
|
||||
|
||||
Reference in New Issue
Block a user