Skip to content

Commit

Permalink
chore: broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Sep 20, 2024
1 parent c11d467 commit f02ad53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/puppeteer/tasks/html.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join } from 'node:path'
import cheerio from 'cheerio'
import { load as cheerio } from 'cheerio'
import fs from 'fs-extra'
import { withoutTrailingSlash } from 'ufo'
import type { CheerioAPI } from 'cheerio'
Expand Down Expand Up @@ -135,7 +135,7 @@ export const inspectHtmlTask: PuppeteerTask = async (props) => {
html = response.payload
}

const $ = cheerio.load(html)
const $ = cheerio(html)
routeReport.seo = processSeoMeta($)
if (resolvedConfig.scanner.ignoreI18nPages && routeReport.seo.alternativeLangDefault && withoutTrailingSlash(routeReport.route.url) !== withoutTrailingSlash(routeReport.seo.alternativeLangDefault)) {
routeReport.tasks.inspectHtmlTask = 'ignore'
Expand Down

0 comments on commit f02ad53

Please sign in to comment.