Skip to content

Need commonjs export patch for build #9

Open
@hax

Description

@hax

Babel 6.x do not transform export default to module.exports, and most babel presets are written in commonjs which do not compatible with exports.default.

Solution:
Change "build": "babel src -d lib" to "build": "babel src -d lib && echo \"\nmodule.exports = exports['default'];\" >> lib/index.js"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions