Skip to content

Commit

Permalink
fix(esm): support vite bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark authored Oct 31, 2023
1 parent 063b4f2 commit c9e510f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion esm/client/html-to-dom.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import ClientParser from '../../lib/client/html-to-dom.js';

export default ClientParser.default;
export default ClientParser.default || ClientParser;
2 changes: 1 addition & 1 deletion esm/index.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import HTMLDOMParser from '../lib/index.js';

export default HTMLDOMParser.default;
export default HTMLDOMParser.default || HTMLDOMParser;
2 changes: 1 addition & 1 deletion esm/server/html-to-dom.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import ServerParser from '../../lib/server/html-to-dom.js';

export default ServerParser.default;
export default ServerParser.default || ServerParser;

0 comments on commit c9e510f

Please sign in to comment.