export const foo = 'bar'; function myFunc() { throw new Error('foobar'); } myFunc();