Skip to content

Commit

Permalink
fix: update referrerpolicy to referrerPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Feb 14, 2023
1 parent eb93813 commit af8c7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/modulePreloadPolyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function polyfill() {
function getFetchOpts(link: any) {
const fetchOpts = {} as any
if (link.integrity) fetchOpts.integrity = link.integrity
if (link.referrerpolicy) fetchOpts.referrerPolicy = link.referrerpolicy
if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy
if (link.crossOrigin === 'use-credentials')
fetchOpts.credentials = 'include'
else if (link.crossOrigin === 'anonymous') fetchOpts.credentials = 'omit'
Expand Down

0 comments on commit af8c7d6

Please sign in to comment.