DEV Community

loading...

Npm Multi Version Package (Standards?)

Frederick
・1 min read

Hi,

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.

Thank!

Discussion (0)