Phaser classes should not bundled in SpinePlugin #5909
Pong420
started this conversation in
Feature Requests
Replies: 2 comments
-
If you (or anyone else) can figure out a way to exclude them from the build process then I'm all ears, otherwise, it's a relatively tiny price to pay given the runtime size itself is hundreds of KB. |
Beta Was this translation helpful? Give feedback.
0 replies
-
How about written in this way. /**
* @typedef {import('../../../types/phaser')}
*/
var Class = require('../../../src/utils/Class');
var GetFastValue = Phaser.Utils.Objects.GetFastValue;
var ImageFile = Phaser.Loader.FileTypes.ImageFile;
var IsPlainObject = Phaser.Utils.Objects.IsPlainObject;
var JSONFile = Phaser.Loader.FileTypes.JSONFile;
var MultiFile = Phaser.Loader.MultiFile;
var TextFile = Phaser.Loader.FileTypes.TextFile; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
These Phaser classes are bundled in the output file and make the file size larger
https://github.com/photonstorm/phaser/blob/bcec70077628ca8fece4b99ef7500d2248ed42da/plugins/spine/src/SpineFile.js#L6-L14
Beta Was this translation helpful? Give feedback.
All reactions