Avoid export default

This commit is contained in:
Aya Morisawa
2019-01-30 16:56:27 +09:00
parent 1c60a49c96
commit 28bfb45426
18 changed files with 26 additions and 28 deletions

View File

@@ -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);