Closed sambP closed 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.
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?