Tinkoff/utils.js

Add babel-plugin-add-module-exports to get rid of require('..someUtil').default

sp3ber opened this issue · 0 comments

As every util has only default export, we can use something like https://github.com/59naga/babel-plugin-add-module-exports to get rid of imports like
const isArray = require('@tinkoff/utils/is/array')
in common.js environments.

Detailed overview of problem - https://babeljs.io/docs/en/babel-plugin-transform-es2015-modules-commonjs