Skip to content

Try load proto files with import assertions when feature lands #8

@prohazko2

Description

@prohazko2

from

const path = new URL("./svc.proto", import.meta.url);
const text = await Deno.readTextFile(protoPath);

to

import text from "./svc.proto" assert { type: "text" };

or even

import proto from "./svc.proto" assert { type: "proto" };

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