Skip to content

Export classes from src/three/plugins/gltf/metadata/classes for external use #1455

@yy923683900

Description

@yy923683900

Description

Currently, the classes located in the src/three/plugins/gltf/metadata/classes folder are not exported and therefore are not accessible for use in external projects. I want to use these classes in my own project, but as they are not exported, I am unable to import them.

Solution

Please export the classes defined in src/three/plugins/gltf/metadata/classes so that they can be imported and used in other codebases. This could be achieved by adding appropriate export statements in an index file or individual class files and ensuring they are part of the package's public API.

Alternatives

As an alternative, I considered copying the class code into my own project, but this approach is not ideal because it fragments maintenance and updates. Another workaround would require direct modifications in the local node_modules, which is not sustainable.

Additional context

Making these classes available for import would help external developers leverage the existing logic and promote reuse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions