Skip to content

Commit e715324

Browse files
committed
chore: improve removeJsExtension comments
1 parent 4845821 commit e715324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function removeQuerystring(id: string) {
241241
return id
242242
}
243243

244-
/** Remove .js or .jsx extension from module id. */
244+
/** Remove .cjs, .mjs, .js or .jsx extension from module id. */
245245
function removeJsExtension(id: string) {
246246
return id.replace(JS_EXT_PATTERN, '')
247247
}

0 commit comments

Comments
 (0)