Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
drwpow committed Sep 23, 2021
1 parent ad63605 commit 167554f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dev": "astro-scripts dev \"src/**/*.ts\"",
"postbuild": "astro-scripts copy \"src/**/*.astro\"",
"benchmark": "node test/benchmark/dev.bench.js && node test/benchmark/build.bench.js",
"test": "mocha --parallel --timeout 15000"
"test": "mocha --parallel --timeout 15000 -g \"Astro basics\""
},
"dependencies": {
"@astrojs/compiler": "^0.1.0-canary.45",
Expand Down
1 change: 1 addition & 0 deletions packages/astro/src/internal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export const renderSlot = async (result: any, slotted: string, fallback?: any) =
};

export const renderComponent = async (result: any, displayName: string, Component: unknown, _props: Record<string | number, any>, slots?: any) => {
console.log({ result });
Component = await Component;
// children = await renderGenerator(children);
const { renderers } = result._metadata;
Expand Down
3 changes: 3 additions & 0 deletions packages/astro/src/runtime/ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ async function resolveRenderers(viteServer: ViteDevServer, ids: string[]) {
}

async function resolveImportedModules(viteServer: ViteDevServer, file: string) {
console.log({ file });
const { url } = await viteServer.moduleGraph.ensureEntryFromUrl(file);
console.log({ url });
const modulesByFile = viteServer.moduleGraph.getModulesByFile(url);
console.log({ modulesByFile });
if (!modulesByFile) {
return {};
}
Expand Down

0 comments on commit 167554f

Please sign in to comment.