mgrubinger / blog

https://www.grooovinger.com/
MIT License
0 stars 0 forks source link

Import and Export a JS Module in one line #24

Open mgrubinger opened 1 year ago

mgrubinger commented 1 year ago

date: '2021-01-14' short: export { namedImport } from './path/to/module';

When you need to immediately export a javascript module again (useful for creating index files):

export { namedImport } from './path/to/module';