Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Need commonjs export patch for build #9

Copy link
Copy link
@hax

Description

@hax
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.