Heya, currently I do this:
import * as B from ‘babylonjs’
So babylon is in my bundle. And babylon never changes, but I do a new bundle a few times a day, so the CDN is refetching the same stuff, and the bundle is huge.
Can I set up typescript so that it knows that “B” is “BABYLON”, but babylon loads like this:
<script src="//cdn.cryptovoxels.com/babylon-3.3.0.js">
And then my bundle doesn’t explicitly import babylon? Or maybe I can do some browserify magic so that babylon is excluded from the bundle and instead the import statements are rewritten to reference window.BABYLON?
Sorry it’s late if I’m not making sense.