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,4 +1,4 @@
|
||||
import { MiddlewareHandlerContext } from "../../deps.server.ts";
|
||||
import { MiddlewareHandlerContext } from "$fresh/server.ts";
|
||||
|
||||
export async function handler(_req: Request, ctx: MiddlewareHandlerContext) {
|
||||
ctx.state.layer1 = "layer1_mw";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MiddlewareHandlerContext } from "../../../deps.server.ts";
|
||||
import { MiddlewareHandlerContext } from "$fresh/server.ts";
|
||||
|
||||
interface State {
|
||||
root: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MiddlewareHandlerContext } from "../../../../deps.server.ts";
|
||||
import { MiddlewareHandlerContext } from "$fresh/server.ts";
|
||||
|
||||
export async function handler(_req: Request, ctx: MiddlewareHandlerContext) {
|
||||
ctx.state.layer3 = "layer3_mw";
|
||||
|
||||
Reference in New Issue
Block a user