You can also rename when exporting. This lets you use one name internally and expose a different name.
function internalHelper() {}
export { internalHelper as helper };
Or rename multiple exports at once:
export { func1 as a, func2 as b };
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Export with different names
You can also rename when exporting. This lets you use one name internally and expose a different name.
function internalHelper() {}
export { internalHelper as helper };
Or rename multiple exports at once:
export { func1 as a, func2 as b };