From d5908b04d4d7e508b8cbba1279ab1df41c27ded6 Mon Sep 17 00:00:00 2001 From: Doug Parker Date: Fri, 3 Mar 2023 23:11:44 -0800 Subject: [PATCH] Updates `node-html-parser` imports to be compatible with ESM. Default import doesn't work when using true ESM, so we need to import by symbol name. --- examples/site/blog/blog_test.ts | 2 +- examples/site/components/header/header_test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/site/blog/blog_test.ts b/examples/site/blog/blog_test.ts index 0b8c10c7..2e925ff8 100644 --- a/examples/site/blog/blog_test.ts +++ b/examples/site/blog/blog_test.ts @@ -1,4 +1,4 @@ -import parse from 'node-html-parser'; +import { parse } from 'node-html-parser'; import renderBlog from './blog'; describe('Blog', () => { diff --git a/examples/site/components/header/header_test.ts b/examples/site/components/header/header_test.ts index 8d1dff27..1fe9859f 100644 --- a/examples/site/components/header/header_test.ts +++ b/examples/site/components/header/header_test.ts @@ -1,4 +1,4 @@ -import parse from 'node-html-parser'; +import { parse } from 'node-html-parser'; import { renderHeader } from './header'; describe('header', () => {