Skip to content

Commit

Permalink
Fix(Renderer): Cannot read properties of undefined (reading 'text')
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Oct 30, 2023
1 parent 8afc0ea commit 72baccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderer/src/actions/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = async function action(filePatterns: Pattern | Pattern[], option
.map(async (eachSourcePath) => {
const content = fs.readFileSync(eachSourcePath, { encoding: 'utf-8' })
const { html, css } = render(content, config)
const renderedCSSText = css.text
const renderedCSSText = css?.text
const renderedCSSSize = renderedCSSText
? (options.analyze
? zlib.brotliCompressSync(renderedCSSText).length
Expand Down

0 comments on commit 72baccd

Please sign in to comment.