Avoid export default
This commit is contained in:
parent
1c60a49c96
commit
28bfb45426
18 changed files with 26 additions and 28 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue