Add default export
zhoutwo opened this issue ยท comments
zhoutwo commented
Please consider adding a default export so that the import statement can be shorter, such as
import chardet from 'chardet';
instead of currently
import * as chardet from 'chardet';
Could be something like:
export default {
detect,
analyse,
detectFile,
detectFileSync
}
Dmitry Shirokov commented
Fixed
Dmitry Shirokov commented
๐ This issue has been resolved in version 1.1.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐
zhoutwo commented
That was quick, thanks!