Context
In ts/app.ts, there is:
function foo() {
console.log('Hello Word');
}
It compiles successfully with Webpack into bundle.js and is loaded with:
<script src="dist/bundle.js"></script>
Question
How to execute foo from my browser console?
> foo()
Uncaught ReferenceError: foo is not defined