You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can see, these two entries doesn't really make any sense. E.g. there's no way that I know of to require the umd version of this package. Either the exports keys should all be prefixed with ./ which would require users to to update their require and import statements accordingly, or the two keys should be require and import instead of umd and default. In both cases the ./dist/d3-color.min.js key should be ./dist/d3-color.min.cjs (notice the cjs ending) since this is a package of "type": "module".
The text was updated successfully, but these errors were encountered:
CommonJS is no longer supported as of d3-color 3.0. In Node (or other environments that use package.json), you must use the ES module import. The UMD is intended for browsers, typically as either a vanilla script or AMD.
This modules ships with a Common JS version under a
dist
directory:However, the
exports
field inpackage.json
, is defined as such:d3-color/package.json
Lines 35 to 38 in 7d61bbe
As far as I can see, these two entries doesn't really make any sense. E.g. there's no way that I know of to require the
umd
version of this package. Either theexports
keys should all be prefixed with./
which would require users to to update theirrequire
andimport
statements accordingly, or the two keys should berequire
andimport
instead ofumd
anddefault
. In both cases the./dist/d3-color.min.js
key should be./dist/d3-color.min.cjs
(notice thecjs
ending) since this is a package of"type": "module"
.The text was updated successfully, but these errors were encountered: