We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2051100 commit b63e0a0Copy full SHA for b63e0a0
src/shared/shared.ts
@@ -184,7 +184,7 @@ const KNOWN_EXTENSIONS = new Set()
184
export function treatAsHtml(filename: string): boolean {
185
if (KNOWN_EXTENSIONS.size === 0) {
186
const extraExts =
187
- (typeof process === 'object' && process.env.VITE_EXTRA_EXTENSIONS) ||
+ (typeof process === 'object' && process.env?.VITE_EXTRA_EXTENSIONS) ||
188
(import.meta as any).env?.VITE_EXTRA_EXTENSIONS ||
189
''
190
0 commit comments