Avoid export default
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const parse5 = require('parse5');
|
||||
import { URL } from 'url';
|
||||
|
||||
export default function(html: string): string {
|
||||
export function fromHtml(html: string): string {
|
||||
if (html == null) return null;
|
||||
|
||||
const dom = parse5.parseFragment(html);
|
||||
|
Reference in New Issue
Block a user