Skip to content

Commit 6347cfd

Browse files
committed
fix: support .mjs in isJS
1 parent 0f5e597 commit 6347cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Resource } from './renderer'
22

33
export function isJS (file: string) {
4-
return /\.js(\?[^.]+)?$/.test(file)
4+
return /\.[m?]js(\?[^.]+)?$/.test(file)
55
}
66

77
export function isCSS (file: string) {

0 commit comments

Comments
 (0)