Skip to content

Commit

Permalink
style: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Nov 14, 2023
1 parent 4c2ad02 commit 70ae76a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/bundler-vite/src/build/renderPagePrefetchLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const renderPagePrefetchLinks = ({
const type = item.endsWith('.js')
? 'script'
: item.endsWith('.css')
? 'style'
: ''
? 'style'
: ''

// user wants to explicitly control what to prefetch
if (shouldPrefetch !== true && !shouldPrefetch(item, type)) {
Expand Down
4 changes: 2 additions & 2 deletions packages/bundler-vite/src/build/renderPagePreloadLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export const renderPagePreloadLinks = ({
const type = item.endsWith('.js')
? 'script'
: item.endsWith('.css')
? 'style'
: ''
? 'style'
: ''

// by default, we only preload js and css
if (shouldPreload === true && type !== 'script' && type !== 'style') {
Expand Down

0 comments on commit 70ae76a

Please sign in to comment.