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

不再支持 require 的使用方式了吗? #75

Closed
eternalsky opened this issue Apr 19, 2016 · 1 comment
Closed

不再支持 require 的使用方式了吗? #75

eternalsky opened this issue Apr 19, 2016 · 1 comment

Comments

@eternalsky
Copy link
Contributor

Select.jsx 里面还是有加 module.exports = exports['default'] 的,应该是有在用 add-module-exports ,但 index 的 export 方式会导致 add-module-exports 失效。

export { Option, OptGroup };
export default Select;

但这样不会

export.Option = Option;
export.OptGroup = OptGroup;
export default Select
@benjycui
Copy link
Member

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

2 participants