Next, I used the "Embed" button to add a Script Editor Web Part into a publishing page. Notice that the script tag references the .js file.
Once the page has rendered, using the browser tools shows that the original typescript file is loaded! Very cool!
Source in Chrome
Source in IE12