Closed guybedford closed 3 years ago
Let’s do index.dev.js
and index.browser.dev.js
It could even be nice to dynamically split on the .
characters and have a well defined grammar mapping in general to allow full flexibility.
(But with so few combinations right now handling them explicitly works too of course!)
Completely have no time for this issue.
Will be glad for PR.
Fixed in https://github.com/ai/dual-publish/pull/16 by @AleksandrSl
Just like
.browser
is automatically detected it would be nice to automatically detect.browser.development
to mean the"browser": { "development" }
exports entry.If there were eg both a
index.browser.js
andindex.browser.development.js
then it would infer"browser": { "development", "default" }
.This would then enable https://github.com/ai/nanoid/issues/237#issuecomment-703135919.