0

Using grunt-ts with say the html: ["*.tpl.html"] option, it compiles *.tpl.html files in the end into *.tpl.html.js files, which set a global var.

Can I instead tell grunt-ts to output the final .js file in a different module syntax, such as AMD or CommonJS, (to avoid using globals)?

P Varga
  • 19,174
  • 12
  • 70
  • 108

1 Answers1

1

Can I instead tell grunt-ts to output the final .js file in a different module syntax, such as AMD or CommonJS, (to avoid using globals)

Not at the moment. The whole html template mechanism was written before module systems exploded in popularity.

basarat
  • 261,912
  • 58
  • 460
  • 511