Skip to content

Commit

Permalink
Upgrade content-tag in ember-repl to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Nov 12, 2024
1 parent 1ef43fd commit 60b69b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ember-repl/addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 6 additions & 1 deletion packages/ember-repl/addon/src/compile/formats/gjs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ async function preprocess(input: string, name: string): Promise<string> {
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(
Expand Down

0 comments on commit 60b69b2

Please sign in to comment.