Skip to content

Commit

Permalink
ZETA-6955: Update to be dynamic import.
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieGreenman committed Oct 25, 2023
1 parent a968c46 commit 8b0bf12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rz/angular/morph-angular-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { insertCodeAfterElement } from './add-sibling-html';
import { insertIntoHtmlTag } from './insert-into-html-tag/insert-into-html-tag';
import { updateHtmlTag } from './update-html-tag';
import * as prettier from 'prettier';
import {parse as angularHtmlParse} from 'angular-html-parser';
import { deleteHtmlElement } from '../html/delete-html-element/delete-html-element';
import { prependHtml } from '../html/prepend-html/prepend-html';
import { appendHtml } from '../html/append-html/append-html';
Expand All @@ -21,6 +20,7 @@ async function convertToAngularHtmlAndPrettify(htmlAst: any) {
}

export async function parseHtml(htmlString: string | any): Promise<any> {
const angularHtmlParse = (await import('angular-html-parser')).parse;
return angularHtmlParse(htmlString);
}

Expand Down

0 comments on commit 8b0bf12

Please sign in to comment.