DEV Community


Npm Multi Version Package (Standards?)

・1 min read


My and my team are implementing a multi build process in our deploy CI/CD flow.

By configuring babel/webpack properly we are now able to ship different versions of our codebase per browser.

However from what I saw, when it come to the packages used by the application in node_modules, they do not all the time offer modern/legacy etc versions through "Exports/mains" package.json fields

I wonder if is there any best practices standard for package publisher is this regard. and if is possible to know easily which packages offer many version.


Discussion (0)