Skip to content

Commit

Permalink
fix: html re
Browse files Browse the repository at this point in the history
Co-authored-by: ygj6 <7699524+ygj6@users.noreply.github.com>
  • Loading branch information
poyoho and ygj6 committed Jan 29, 2022
1 parent fc1caa4 commit 9e4df7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/html.ts
Expand Up @@ -43,7 +43,7 @@ interface ScriptAssetsUrl {

const htmlProxyRE = /\?html-proxy[&inline\-css]*&index=(\d+)\.(js|css)$/
const inlineCSSRE = /__VITE_INLINE_CSS__([^_]+_\d+)__/g
const htmlLangRE = /.(html|htm)$/
const htmlLangRE = /\.(html|htm)$/
const inlineImportRE = /\bimport\s*\(("[^"]*"|'[^']*')\)/g

export const isHTMLProxy = (id: string): boolean => htmlProxyRE.test(id)
Expand Down

0 comments on commit 9e4df7a

Please sign in to comment.