Skip to content

Add file extensions to generated imports. #182

Open
@sachaw

Description

@sachaw

Files generated by the protoc plugin, currently, import witht he following syntax import {x} from 'y' however for reasons outlined in nodejs/modules#444, the following syntax should be used for forward compatibility with esmodules import {x} from 'y.js'

Further reading:
https://nodejs.org/api/esm.html#import-specifiers
https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions