0

How to export default from another module in one line?

export * from './another'; //Can't export default from another.
export m from './another';
export default m;  //That's ok.
lei li
  • 930
  • 7
  • 19
  • Possible duplicate of [Re-export default in ES 6 modules](https://stackoverflow.com/questions/39999282/re-export-default-in-es-6-modules) – ford04 Sep 23 '20 at 12:08

1 Answers1

1

Use:

export { default } from './another';
ccarton
  • 2,967
  • 12
  • 13