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
Note that "exports" can also be string|string[], so the feature request is to keep the behavior of overwriting the field if it was either string|string[]|undefined|null however when the field had value {} (or Map in dart) then use the spread operator and only overwrite "node", "browser", and "default" when specified.
An alternative would have been defining a new configuration for "types" and then include it in exports but that knob becomes very fragile and it's better to just rely on merging the objects IMO
Goodwine
added a commit
to Goodwine/dart_cli_pkg
that referenced
this issue
Jun 27, 2022
when having a package.json file with exports like
This currently becomes
Ideally this should become
Note that
"exports"
can also bestring|string[]
, so the feature request is to keep the behavior of overwriting the field if it was eitherstring|string[]|undefined|null
however when the field had value{}
(orMap
in dart) then use the spread operator and only overwrite"node"
,"browser"
, and"default"
when specified.See sass/dart-sass#1714
The text was updated successfully, but these errors were encountered: