I'm trying to define a RequireJS module that consists only of a script tag - how do I do this? Although it may not be pertinent, the reason I'm trying to do this is I want to share a constants file between C# MVC 5 and JS - see the question and accepted answer here.
Here's what I have so far:
define('ClientServerSharedConstants', function () {
<script type = "text/javascript" src="@Url.Action("Constants")"></script>
});
How do I do this?