Skip to content

Commit 69e2433

Browse files
authored
fix: do not consider .cjs files as esm (#38)
1 parent b787b04 commit 69e2433

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
@@ -58,7 +58,7 @@ export const parseResource = (path: string) => {
5858
if (asType) {
5959
chunk.resourceType = asType
6060

61-
if (asType === 'script') {
61+
if (asType === 'script' && extension !== 'cjs') {
6262
chunk.module = true
6363
}
6464
}

0 commit comments

Comments
 (0)