diff --git a/plugins/async-node/core/src/index.test.ts b/plugins/async-node/core/src/index.test.ts index af04689b6..c93af6449 100644 --- a/plugins/async-node/core/src/index.test.ts +++ b/plugins/async-node/core/src/index.test.ts @@ -45,7 +45,6 @@ test("replaces async nodes with provided node", async () => { let deferredResolve: ((value: any) => void) | undefined; plugin.hooks.onAsyncNode.tap("test", async (node: Node.Node) => { - console.log("tapped"); return new Promise((resolve) => { deferredResolve = resolve; }); diff --git a/plugins/async-node/core/src/index.ts b/plugins/async-node/core/src/index.ts index 4c505ad7d..3a7cbd24c 100644 --- a/plugins/async-node/core/src/index.ts +++ b/plugins/async-node/core/src/index.ts @@ -39,10 +39,6 @@ export class AsyncNodePlugin implements PlayerPlugin { this.plugins = options.plugins; options.plugins.forEach((plugin) => { plugin.applyPlugin(this); - // plugin.asyncNode.tap('test', async (node: Node.Node) => { - // console.log('got async node') - // return await this.hooks.onAsyncNode.call(node) - // }); }); } } @@ -131,11 +127,7 @@ export class AsyncNodePluginPlugin implements AsyncNodeViewPlugin { const newNode = resolvedNode || node; if (!resolvedNode && node?.type === NodeType.Async) { queueMicrotask(async () => { - if (this.basePlugin) { - console.log("calling async node"); - } const result = await this.basePlugin?.hooks.onAsyncNode.call(node); - console.log(`result is ${result}`); const parsedNode = options.parseNode && result ? options.parseNode(result) : undefined; @@ -154,7 +146,6 @@ export class AsyncNodePluginPlugin implements AsyncNodeViewPlugin { apply(view: ViewInstance): void { view.hooks.parser.tap("template", this.applyParser.bind(this)); - console.log(`wtf ${this.basePlugin}`); view.hooks.resolver.tap("template", (resolver) => { resolver.hooks.beforeResolve.tap(this.name, (node, options) => { let resolvedNode; @@ -170,11 +161,7 @@ export class AsyncNodePluginPlugin implements AsyncNodeViewPlugin { const newNode = resolvedNode || node; if (!resolvedNode && node?.type === NodeType.Async) { queueMicrotask(async () => { - if (this.basePlugin) { - console.log("calling async node"); - } const result = await this.basePlugin?.hooks.onAsyncNode.call(node); - console.log(`result is ${result}`); const parsedNode = options.parseNode && result ? options.parseNode(result)