You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function bar() {
console.log("bar() is called");
}
foo.ts:
export {bar} from "./bar"
Result:
export { bar } from "./bar";
//# sourceURL=./foo.ts
Uncaught (in promise) TypeError: Error resolving module specifier “./bar”. Relative module specifiers must start with “./”, “../” or “/”.
The text was updated successfully, but these errors were encountered:
I guess the way to go is to console.log out the data structure of these export statements (though not touch other export statements, as they are not limited to start of script), add an else if branch with basically same logic as for ImportDeclaration (should probably move it to a separate function and reuse from both branches) with addition of export { bar }; after the imports block or something like that...
bar.ts:
foo.ts:
Result:
The text was updated successfully, but these errors were encountered: