metarhia / common

Metarhia Common Library 🗜️
https://metarhia.com
MIT License
63 stars 34 forks source link

Better ESM integration with conditional exports #334

Closed lundibundi closed 4 years ago

lundibundi commented 4 years ago

Since Conditional exports are not experimental anymore this will allow to use @metarhia/common as follows:

import common from '@metarhia/common'

Without the need for additional /module suffix.

Just read through the docs and found out it's not experimental anymore and since we haven't released the current version this would IMO be better.

lundibundi commented 4 years ago

Updated with compatibility changes from https://github.com/metarhia/common/pull/336.