Skip to content

Commit 0dd0a7b

Browse files
committed
explicitly forbid .js exports
a much better error message than 'file.js.js not found'.
1 parent 617cd6a commit 0dd0a7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"./*": {
2323
"types": "./*.d.ts",
2424
"default": "./*.js"
25-
}
25+
},
26+
"./*.js": null
2627
},
2728
"files": [
2829
"cosmos/",

0 commit comments

Comments
 (0)