Skip to content

Commit

Permalink
Updates node-html-parser imports to be compatible with ESM.
Browse files Browse the repository at this point in the history
Default import doesn't work when using true ESM, so we need to import by symbol name.
  • Loading branch information
dgp1130 committed Mar 4, 2023
1 parent 052210b commit d5908b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/site/blog/blog_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import parse from 'node-html-parser';
import { parse } from 'node-html-parser';
import renderBlog from './blog';

describe('Blog', () => {
Expand Down
2 changes: 1 addition & 1 deletion examples/site/components/header/header_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import parse from 'node-html-parser';
import { parse } from 'node-html-parser';
import { renderHeader } from './header';

describe('header', () => {
Expand Down

0 comments on commit d5908b0

Please sign in to comment.