feat: import fresh from fresh (#2479)
Instead of importing as `@fresh/core`.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { App, staticFiles } from "@fresh/core";
|
||||
import { App, staticFiles } from "fresh";
|
||||
import {
|
||||
allIslandApp,
|
||||
assertNotSelector,
|
||||
@@ -14,7 +14,7 @@ import { SelfCounter } from "./fixtures_islands/SelfCounter.tsx";
|
||||
import { PartialInIsland } from "./fixtures_islands/PartialInIsland.tsx";
|
||||
import { JsonIsland } from "./fixtures_islands/JsonIsland.tsx";
|
||||
import { FakeServer } from "../src/test_utils.ts";
|
||||
import { Partial } from "@fresh/core/runtime";
|
||||
import { Partial } from "fresh/runtime";
|
||||
import { getBuildCache, setBuildCache } from "../src/app.ts";
|
||||
|
||||
await buildProd(allIslandApp);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useEffect } from "preact/hooks";
|
||||
import { useSignal } from "@preact/signals";
|
||||
import { IS_BROWSER } from "@fresh/core/runtime";
|
||||
import { IS_BROWSER } from "fresh/runtime";
|
||||
|
||||
export function NodeProcess() {
|
||||
const active = useSignal(false);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Partial } from "@fresh/core/runtime";
|
||||
import { Partial } from "fresh/runtime";
|
||||
|
||||
export function PartialInIsland() {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { App, fsRoutes } from "@fresh/core";
|
||||
import { App, fsRoutes } from "fresh";
|
||||
import { Counter } from "./fixtures_islands/Counter.tsx";
|
||||
import { IslandInIsland } from "./fixtures_islands/IslandInIsland.tsx";
|
||||
import { JsonIsland } from "./fixtures_islands/JsonIsland.tsx";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { App, staticFiles } from "@fresh/core";
|
||||
import { Partial } from "@fresh/core/runtime";
|
||||
import { App, staticFiles } from "fresh";
|
||||
import { Partial } from "fresh/runtime";
|
||||
import {
|
||||
allIslandApp,
|
||||
assertMetaContent,
|
||||
|
||||
Reference in New Issue
Block a user