diff --git a/packages/ember-repl/addon/package.json b/packages/ember-repl/addon/package.json index 9361c84583..8fc3a75535 100644 --- a/packages/ember-repl/addon/package.json +++ b/packages/ember-repl/addon/package.json @@ -61,7 +61,7 @@ "scripts": { "build": "concurrently 'npm:build:*'", "build:js": "rollup --config", - "build:types": "tsc --emitDeclarationOnly --noEmit false", + "---build:types": "tsc --emitDeclarationOnly --noEmit false", "lint:types": "tsc --noEmit", "lint:fix": "pnpm -w exec lint fix", "start": "rollup --config --watch", diff --git a/packages/ember-repl/addon/src/browser/gjs.ts b/packages/ember-repl/addon/src/browser/gjs.ts index 12b1d08c7f..1e4b86eee6 100644 --- a/packages/ember-repl/addon/src/browser/gjs.ts +++ b/packages/ember-repl/addon/src/browser/gjs.ts @@ -6,17 +6,19 @@ import type { Babel } from './types.ts'; const compiler = importSync('ember-source/dist/ember-template-compiler.js'); -import { createPreprocessor } from 'content-tag/standalone'; - -let processor; +let processor: any; let fetchingPromise: Promise; export async function preprocess(input: string, name: string): Promise { if (!fetchingPromise) { - fetchingPromise = createPreprocessor(); + fetchingPromise = import('content-tag'); } - processor = await fetchingPromise; + if (!processor) { + let { Preprocessor } = await fetchingPromise; + + processor = new Preprocessor(); + } return processor.process(input, `${name}.js`); }