Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need commonjs export patch for build #9

Open
hax opened this issue Jun 17, 2016 · 0 comments
Open

Need commonjs export patch for build #9

hax opened this issue Jun 17, 2016 · 0 comments

Comments

@hax
Copy link
Contributor

hax commented Jun 17, 2016

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"

hax added a commit to hax/generator-babel-plugin that referenced this issue Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant