TypeStrong / tsify

Browserify plugin for compiling TypeScript
345 stars 74 forks source link

External .js libs #225

Closed sambP closed 7 years ago

sambP commented 7 years ago

How is it possible to bundle external .js libs into the bundle.js?

normal typescript usage <script src="lib.js"></script> declare var lib: any;

This works, but only if your lib.js does not need any code from your bundle.js. Is this a bug or is there any way to solve this?

cartant commented 7 years ago

I don't really understand the question. Nor do I understand why an external library would need code from within the bundle.

You seem to be talking about splitting code between multiple bundles. Here are some Stack Overflow questions that might be of some help.

https://stackoverflow.com/questions/41027316 https://stackoverflow.com/q/41286874/6680611 https://stackoverflow.com/q/27922208/6680611

This sounds much more like a Browserify question/issue than a tsify issue.