Environment: Visual Studio 2015 Update 1, Windows 10 Insider Preview 14257, TS 1.8.0-beta Repro: 1. Create a new project 2. Add a blank TypeScript file named `file.ts` 3. Add a reference to `file.js` in `default.htm` before `/js/default.js` ``` typescript <link href="/css/default.css" rel="stylesheet" /> <script src="file.js"></script> <script src="/js/default.js"></script> ``` 4. Write `var homu = "homu"` on `file.ts` 5. Build and deploy the app by clicking "Local Machine" 6. It should launch with no error 7. Close the app 8. Click "Local Machine" again 9. Now it says `0x800a1391 - JavaScript runtime error: 'homu' is undefined`