Closed dylang closed 2 hours ago
Hi again!
Your change for my previous ticket broke support for using vaca in CJS packages. I don't think that was intentional, as it wasn't a major bunmp.
Could we add "main": "./main.js" to the package.json?
"main": "./main.js"
Or an exports that supports both import and require?
exports
import
require
It was never documented as being available as an API. It was just accidentally available because of the looseness of CJS.
https://github.com/sindresorhus/vaca/releases/tag/v3.0.2
Hi again!
Your change for my previous ticket broke support for using vaca in CJS packages. I don't think that was intentional, as it wasn't a major bunmp.
Could we add
"main": "./main.js"
to the package.json?Or an
exports
that supports bothimport
andrequire
?