Skip to content

Commit

Permalink
chore: remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Apr 26, 2023
1 parent 2993e80 commit 0ee02c9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions packages/astro/src/runtime/server/render/page.ts
Expand Up @@ -54,7 +54,6 @@ async function iterableToHTMLBytes(
// Recursively calls component instances that might have head content
// to be propagated up.
async function bufferHeadContent(result: SSRResult) {
console.log('[bufferHeadContent] Started');
const iterator = result.propagators.values();
while (true) {
const { value, done } = iterator.next();
Expand All @@ -63,7 +62,6 @@ async function bufferHeadContent(result: SSRResult) {
}
const returnValue = await value.init(result);
if (isHeadAndContent(returnValue)) {
console.log('[bufferHeadContent] Found head:', returnValue.head);
result.extraHead.push(returnValue.head);
}
}
Expand Down Expand Up @@ -130,7 +128,6 @@ export async function renderPage(
result._metadata.headInTree =
result.componentMetadata.get(componentFactory.moduleId!)?.containsHead ?? false;
const factoryReturnValue = await componentFactory(result, props, children);
console.log('factoryReturnValue', result);
const factoryIsHeadAndContent = isHeadAndContent(factoryReturnValue);
if (isRenderTemplateResult(factoryReturnValue) || factoryIsHeadAndContent) {
// Wait for head content to be buffered up
Expand All @@ -139,7 +136,6 @@ export async function renderPage(
? factoryReturnValue.content
: factoryReturnValue;

console.log('rendering template');
let iterable = renderAstroTemplateResult(templateResult);
let init = result.response;
let headers = new Headers(init.headers);
Expand Down
2 changes: 0 additions & 2 deletions packages/astro/src/vite-plugin-head/index.ts
Expand Up @@ -42,7 +42,6 @@ export default function configHeadVitePlugin({

for (const parent of mod?.importers || []) {
if (parent.id) {
console.log('[propagateMetadata] Bubbling:', id);
propagateMetadata.call(this, parent.id, prop, value, seen);
}
}
Expand All @@ -64,7 +63,6 @@ export default function configHeadVitePlugin({
}

if (injectExp.test(source)) {
console.log('[propagateMetadata] Found root:', id);
propagateMetadata.call(this, id, 'propagation', 'in-tree');
}
},
Expand Down
1 change: 0 additions & 1 deletion packages/integrations/markdoc/components/TreeNode.ts
Expand Up @@ -79,7 +79,6 @@ export const ComponentNode = createComponent({
)}`
);

console.log('[Markdoc renderer] Setting propagator');
// Let the runtime know that this component is being used.
result.propagators.set(
{},
Expand Down

0 comments on commit 0ee02c9

Please sign in to comment.