0

At the moment in a npm package I have an index.js file that imports a func and immediately exports it as default.

import joiValidator from './utils/joiValidator';
export default joiValidator;

Is there a way I can combine them into one cleaner line?

flow24
  • 429
  • 1
  • 3
  • 14
  • 3
    Does this answer your question? [ES6, how can you export an imported module in a single line?](https://stackoverflow.com/questions/35665759/es6-how-can-you-export-an-imported-module-in-a-single-line) – capchuck Aug 30 '21 at 10:32

0 Answers0