Skip to content

ES6 Static code import protobufjs isntead of protobufjs/minimal #798

@kalitine

Description

@kalitine

protobuf.js version: 6.7.3

Actual behavior

When generating static code with es6 wrapping like so:

$pbjs -w es6 -t static-module message.proto > message.js

The message.js script imports protobufjs:

import * as $protobuf from "protobufjs";

Expected behavior
The message.js script should import protobufjs/minimal, isn't it?

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

    Issue actions