The "exports" field allows defining the entry points of a package. Through the use of conditional exports loader specific entries can be defined.
It can be a string an object or an array
If package.exports is a string an import or require of your package will always resolve to that string
If package.exports is an object you can define two types of fields.