diff --git a/sandpack-client/src/client.ts b/sandpack-client/src/client.ts index 56bfc87db..7f3bf5609 100644 --- a/sandpack-client/src/client.ts +++ b/sandpack-client/src/client.ts @@ -282,11 +282,6 @@ export class SandpackClient { {} ); - const template = - this.sandboxInfo.template || getTemplate(packageJSON, normalizedModules); - - console.log({ template, sandboxInfo: this.sandboxInfo }); - this.dispatch({ type: "compile", codesandbox: true, @@ -298,7 +293,9 @@ export class SandpackClient { hasFileResolver: Boolean(this.options.fileResolver), disableDependencyPreprocessing: this.sandboxInfo.disableDependencyPreprocessing, - template, + template: + this.sandboxInfo.template || + getTemplate(packageJSON, normalizedModules), showOpenInCodeSandbox: this.options.showOpenInCodeSandbox ?? true, showErrorScreen: this.options.showErrorScreen ?? true, showLoadingScreen: this.options.showLoadingScreen ?? true,