Hi all,
I'm currently building a game with Pixi in Typescript. I'd like to use the ES6 modules, as I'm under the impression that by doing so, I should be able to treeshake any unused PIXI code out of the final build / load it in chunks on demand.
So -- do we have a set of Typescript definitions for each Pixi ES6 module, something like:
declare module '@pixi/app' {
class Application ...
}
-- or am I just doing it wrong, and treeshaking already works with import * as PIXI from 'pixi.js'?
Quick caveat: I'm new to both Pixi and Typescript, but wildly experienced at misunderstanding and breaking stuff.