diff --git a/packages/ember-repl/addon/package.json b/packages/ember-repl/addon/package.json index e4137b159..70ab8f449 100644 --- a/packages/ember-repl/addon/package.json +++ b/packages/ember-repl/addon/package.json @@ -83,7 +83,7 @@ "broccoli-file-creator": "^2.1.1", "change-case": "^5.4.4", "common-tags": "^1.8.2", - "content-tag": "^2.0.2", + "content-tag": "^3.0.0", "decorator-transforms": "^2.3.0", "ember-resources": "^7.0.1", "line-column": "^1.0.2", diff --git a/packages/ember-repl/addon/src/compile/formats/gjs/index.ts b/packages/ember-repl/addon/src/compile/formats/gjs/index.ts index 3155880c2..4085512b0 100644 --- a/packages/ember-repl/addon/src/compile/formats/gjs/index.ts +++ b/packages/ember-repl/addon/src/compile/formats/gjs/index.ts @@ -80,7 +80,12 @@ async function preprocess(input: string, name: string): Promise { processor = new Preprocessor(); } - return processor.process(input, { filename: `${name}.js`, inline_source_map: true }); + let { code /* map */ } = processor.process(input, { + filename: `${name}.js`, + inline_source_map: true, + }); + + return code; } async function transform( diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f96e51b06..a66dbcf93 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1357,8 +1357,8 @@ importers: specifier: ^1.8.2 version: 1.8.2 content-tag: - specifier: ^2.0.2 - version: 2.0.3 + specifier: ^3.0.0 + version: 3.0.0 decorator-transforms: specifier: ^2.3.0 version: 2.3.0(@babel/core@7.26.0) @@ -6282,6 +6282,9 @@ packages: content-tag@2.0.3: resolution: {integrity: sha512-htLIdtfhhKW2fHlFLnZH7GFzHSdSpHhDLrWVswkNiiPMZ5uXq5JfrGboQKFhNQuAAFF8VNB2EYUj3MsdJrKKpg==} + content-tag@3.0.0: + resolution: {integrity: sha512-HxWPmF9hzehv5PV7TSK7QSzlVBhmwQA8NgBrXmL+fqXfM3L1r3ResAPzeiGbxra3Zw6U3gdhw3cIDJADQnuCVQ==} + content-type@1.0.5: resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} engines: {node: '>= 0.6'} @@ -16283,6 +16286,8 @@ snapshots: content-tag@2.0.3: {} + content-tag@3.0.0: {} + content-type@1.0.5: {} continuable-cache@0.3.1: {}