remove need for export function self

This commit is contained in:
Luca Casonato
2021-05-08 03:12:56 +02:00
parent 303f4fd140
commit 9145711e2e
6 changed files with 12 additions and 15 deletions
-4
View File
@@ -10,7 +10,3 @@ export default function Home(props: PageProps) {
</div>
);
}
export function self() {
return import.meta.url;
}
-4
View File
@@ -3,7 +3,3 @@ import { h } from "../deps.ts";
export default function Home(props: {}) {
return <div>Hello World!</div>;
}
export function self() {
return import.meta.url;
}
+1 -1
View File
@@ -3,4 +3,4 @@ import { setup } from "../server.ts";
import * as $0 from "./pages/[name].tsx";
import * as $1 from "./pages/index.tsx";
setup([$0, $1], import.meta.url);
setup([[$0, "./pages/[name].tsx"], [$1, "./pages/index.tsx"]], import.meta.url);