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

Fix module exports #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix module exports #14

wants to merge 3 commits into from

Conversation

anilpixel
Copy link

When I use your progress bar with Jest(babel-jest for loader), babel-jest can't load this module:
I think the reason is in lib/ProgressBar.js

exports.default = ProgressBar;
module.exports = exports['default']; 

it's NOT a standard babel6 compiled result for ES Module, because .babelrc use babel-plugin-add-module-exports.

So I remove babel-plugin-add-module-exports from .babelrc, and rebuild it.

PS: I'm sorry disabled eslint-rule: jsx-a11y/no-static-element-interactions and my poor Engilsh.

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

Successfully merging this pull request may close these issues.

1 participant