We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 798c364 commit f0b8e0eCopy full SHA for f0b8e0e
1 file changed
src/print/index.ts
@@ -46,10 +46,7 @@ export const printer: Printer<Node | undefined> = {
46
} else {
47
let printed = estreePrinter.print(path, options, print, args);
48
49
- if (!Array.isArray(printed)) {
50
- printed = [printed];
51
- }
52
-
+ assert('Expected Glimmer doc to be an array', Array.isArray(printed));
53
trimPrinted(printed);
54
55
// Remove semicolons so we can manage them ourselves
@@ -113,6 +110,7 @@ export const printer: Printer<Node | undefined> = {
113
110
114
111
const printed = printTemplateTag(content);
115
112
saveCurrentPrintOnSiblingNode(path, printed);
+ console.log(printed);
116
return printed;
117
} catch (error) {
118
console.error(error);
0 commit comments