I am trying to use a simple js function in a view and it doesn't seem the view is seeing the script I am referencing.
testFile.js:
export const simpleFc = (input) => {
alert(input);
}
It build without error and I can see the resulted build js file and it's content is correct. I have no other js error in console.
I am including it in the view:
<script src="~/dist/js/testFile.build.js"></script>
Then I am trying to use it:
<script type="text/javascript">
simpleFc('show alert');
</script>
I am getting an error saying: simpleFc is not defined.