exports Typescript commonjs global compiled files to be written on window for webpack
Installation
npm install ts-global-module-loader
Usage
For code that generated from Typescript that looks like that:
var services;{var Foo = {{}return Foo;};servicesFoo = Foo;}services || services = {};
;
will modify the code file's source to:
var services = window"services";{var Foo = {{}return Foo;};servicesFoo = Foo;}services || services = {};window"services" = services;
Inspired by https://github.com/webpack/exports-loader;
License
MIT (http://www.opensource.org/licenses/mit-license.php)