Skip to content

[Feature Request] Support for Remapping Packages #248

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions