I’m trying to define the namespace in one file as:
let editor = (()=>{
var editorVisible = false;
var toggleEditor = ()=>{};
var initEditor = ()=>{};
})();
export default editor;
and export it in another:
import {editor} from '@src/components/editor';
console.log(editor); //<= undefined
But whatever I do, it’s always undefined although compiled by webpack without errors.