Skip to content

Add support for import .mjs file #100

@NNBnh

Description

@NNBnh

As the name suggested. I and other need this to work with Gleam gen code. Thanks

Activity

chucksellick

chucksellick commented on Jun 12, 2025

@chucksellick

I was able to import an mjs file just by setting "allowJs": true in my compilerOptions in tsconfig

NNBnh

NNBnh commented on Jun 12, 2025

@NNBnh
Author

It's somehow still can't import on Godot side T_T, but I found the workaround of compile all Gleam build result with bun and rename all the file to ts...

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

        Participants

        @chucksellick@NNBnh

        Issue actions

          Add support for import `.mjs` file · Issue #100 · godotjs/GodotJS