phaser3-nineslice icon indicating copy to clipboard operation
phaser3-nineslice copied to clipboard

deep-import phaser modules

Open cruzdanilo opened this issue 4 years ago • 0 comments

import each phaser module individually, aka deep-import. this is a good practice, makes tree shaking unnecessary, and dramatically decreases bundle size. on my setup, this change made the main bundle 62% smaller on production (minified) build:

cruzdanilo avatar Jun 08 '20 15:06 cruzdanilo