Let's say I have a module that I want to re-export:
//exportme.js export default 'EXPORTME'; export const test = () => console.log('test function'); //reexport.js export * from './exportme.js'
When I import reexport.js, the default value from exportme.js is not available.
//app.js import reexport from './reexport.js' console.log(reexport) //undefined
I need to make reexport.js next to work.
export * from './exportme.js' export default from './exportme.js'
Is there an easier way to do this, or can it be combined into a single statement?
export default, * from './exportme.js' does not work.
I am using the latest babel with transform-export-extensions
source share