Skip to content

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

Closed
@sp3ber

Description

@sp3ber

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions