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

Named exports Override Behaviors #83

Closed
xianshenglu opened this issue Apr 14, 2019 · 0 comments
Closed

Named exports Override Behaviors #83

xianshenglu opened this issue Apr 14, 2019 · 0 comments

Comments

@xianshenglu
Copy link
Owner

xianshenglu commented Apr 14, 2019

// ! avoid doing this again because there might be attributes with the same name in user and routerSearch.
// ! for example. user= {permissions:[1,2]}  routerSearch = {permissions:[1,2,3]}. Then permissions might be overwirtten.
export default {
  ...user,
  ...routerSearch
  // other export
};

Another Version

export * from "./users";
export * from "./routerSearch";
// other export

Already proposed to ESLint.
babel/babel#2438
babel/babel#3986
babel/babel#2438
systemjs/systemjs#1031
https://stackoverflow.com/questions/34745110/es2015-re-export-module-and-override-single-export-function-of-the-re-exported-m

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