Skip to content

Commit 89b32a6

Browse files
committedSep 23, 2022
Add a module entry to the require exports condition
This should prevent exports-aware bundlers, such as Rollup with recent versions of the node-resolve plugin, from including two copies of Underscore.
1 parent 7459b8d commit 89b32a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"default": "./underscore-esm.js"
3232
},
3333
"require": {
34+
"module": "./modules/index-all.js",
3435
"browser": {
3536
"production": "./underscore-umd-min.js",
3637
"default": "./underscore-umd.js"

0 commit comments

Comments
 (0)