Skip to content

[Feature Request] Support for Remapping Packages #248

Open

Description

@Fancy2209

I was working on openfl/openfl-js#11, but realized that, if a library exports itself under 2 namespaces like that, users will stumble upon issues REALLY quickly.
One example of this is, say the library exports itself as openfl.* and flash., but another library depends on it compiles using the openfl. version of classes, this will immediately cause issues to the end user if they want to use the flash.* version, because e.g. flash.display.Bitmap isn't the same as openfl.display.Bitmap to the compiler.
I believe for this reason, there should be a feature similar to Haxe's --remap compiler flag, that allows a package to be imported under another name, for compatibility reasons.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions