It currently isn't possible to specify a target package with a colon:
protoc-gen-es: invalid option "rewrite_imports=@bufbuild/protobuf:npm:@bufbuild/protobuf": must be in the form of <pattern>:<target>
This relaxes the check to accept one or more colons in the target. As a result, it is now possible to add an "npm:" specifier to generated imports from @bufbuild/protobuf for Deno:
With the plugin option
rewrite_imports
, it's possible to modify generated import paths - more details in https://github.com/bufbuild/protobuf-es/issues/947#issuecomment-2257889255.It currently isn't possible to specify a target package with a colon:
This relaxes the check to accept one or more colons in the target. As a result, it is now possible to add an "npm:" specifier to generated imports from
@bufbuild/protobuf
for Deno:This generates imports with the prefixes:
Closes https://github.com/bufbuild/protobuf-es/issues/992.