I have two files in my backend test.jsw and test2.jsw… I have a function in test2.jsw which is exported like so
function returnSomething() {
return 10;
}
const defaultExp = {
returnSomething: returnSomething
}
export { test2 as default}
This code works and I can import the and do defaultExp.returnSomething() but the permissions on the exporting backend file are not accessible when I use the default export
What do I make of this? Should I not use export default?