Skip to content

Commit 7de506c

Browse files
fix(client): correct ECMAScript export in client html-to-dom.mjs
Fixes #334
1 parent 848a622 commit 7de506c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lib/client/html-to-dom.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import domparser from './domparser';
2-
import { formatDOM } from './utilities';
1+
import domparser from './domparser.js';
2+
import { formatDOM } from './utilities.js';
33

44
var DIRECTIVE_REGEX = /<(![a-zA-Z\s]+)>/; // e.g., <!doctype html>
55

@@ -29,5 +29,4 @@ function HTMLDOMParser(html) {
2929
return formatDOM(domparser(html), null, directive);
3030
}
3131

32-
module.exports = HTMLDOMParser;
33-
module.exports.default = HTMLDOMParser;
32+
export default HTMLDOMParser;

0 commit comments

Comments
 (0)