Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
fix: use "protobufjs/light" instead of "protobufjs" for smaller bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
elderapo committed Feb 11, 2019
1 parent 91a4730 commit 84b615e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ProtobufLiteMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Field, Type } from "protobufjs";
import { Field, Type } from "protobufjs/light";
import { ICustomFieldCodec, InternalCodecs } from "./codecs";
import { getMetadataObject, hasMetadataObject } from "./metadataHelpers";
import { defaultProtobufLitePropertyOptions } from "./ProtobufLiteProperty";
Expand Down
2 changes: 1 addition & 1 deletion src/encoderDecoderFunctionts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Message } from "protobufjs";
import { Message } from "protobufjs/light";
import { getMetadataObject, hasMetadataObject } from "./metadataHelpers";
import { ensureBuffer } from "./utils";

Expand Down
2 changes: 1 addition & 1 deletion test/benchmark.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Field, Type } from "protobufjs";
import { Field, Type } from "protobufjs/light";
import "reflect-metadata";
import { decode, encode, ProtobufLiteProperty } from "../src";
import { newSuite } from "./benchmarkSute";
Expand Down

0 comments on commit 84b615e

Please sign in to comment.