Skip to content

IGE-ES6 - Using the engine as a module\project reference is broken by recent change #479

@beyond-code-github

Description

@beyond-code-github

This change below has resulted in a subtle difference in the generated .js file for the index of the module. This wouldn't be apparent unless you are referencing IGE as a module or via a typescript project reference (I am doing the latter).

ige/index.ts

Line 3 in 6d0b289

export * from "@/engine/instance";

It seems to be that the compiler is having difficulty following the custom paths starting with '@' when processing an export directive. I tried to work around it by replacing import { ige } from "@irrelon/ige"; with import { ige } from "@/engine/instance.js"; but there's a further snafu which means that if there are no imports of the index.ts file then you don't pull in the ige-specific extensions to the Event type defined there, which breaks compilation as well.

@Irrelon Could this change be rolled back?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions