Skip to content

Allow import/require in Player.js for modularity of user code #99

@hexpunk

Description

@hexpunk

Originally mentioned in #39, it would be a great improvement to code organization if users like myself could split our code into modules (*.js and *.mjs) that could be loaded into the Player.js file (via import and/or require).

It doesn't appear that this is supported at the moment. That means that a lot of code ends up in Player.js. At various times while playing, I've been in the neighborhood of 250 lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg: corePertaining to @warriorjs/coretype: featureA potential feature to be added

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions