Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -412,15 +412,15 @@ const manualRemovalHint = (previewConfigPath: string, reason: string): void =>
);

const removePreviewWiring = (preview: ConfigFile, previewConfigPath: string): void => {
const reason = removeTopLevelCall(preview._ast.program, {
const result = removeTopLevelCall(preview._ast.program, {
callee: SET_COMPODOC_JSON,
calleeSources: new Set([ADDON_DOCS_ANGULAR]),
});
if (reason) {
if (!result.removed) {
manualRemovalHint(
previewConfigPath,
countReferences(preview._ast.program, SET_COMPODOC_JSON) > 0
? reason
? result.reason
: `no ${SET_COMPODOC_JSON} call is visible here, only a documentation.json import`
);
return;
Expand Down
Loading
Loading