Invoke the text plugin from requirejs mapping

前端 未结 5 1995
死守一世寂寞
死守一世寂寞 2020-12-31 13:32

I\'m writing a web app using TypeScript, Backbone, and Mustache. I want to use Requirejs for dependency loading.

I\'m also using the Web Essentials visual studio plu

5条回答
  •  执笔经年
    2020-12-31 14:18

    Ran into similar issue. Solved finally. See TypeScript: compiling removes unreferenced imports

    /// 
    
    var applicationTemplate = require('text!templates/application.htm');
    

提交回复
热议问题