From 84b615e64b43af2407b78467f14bbb9e851913f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Marty=C5=84ski?= Date: Mon, 11 Feb 2019 02:06:46 +0100 Subject: [PATCH] fix: use "protobufjs/light" instead of "protobufjs" for smaller bundles --- src/ProtobufLiteMetadata.ts | 2 +- src/encoderDecoderFunctionts.ts | 2 +- test/benchmark.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ProtobufLiteMetadata.ts b/src/ProtobufLiteMetadata.ts index 250fb52..a49bb2d 100644 --- a/src/ProtobufLiteMetadata.ts +++ b/src/ProtobufLiteMetadata.ts @@ -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"; diff --git a/src/encoderDecoderFunctionts.ts b/src/encoderDecoderFunctionts.ts index 0f2cc8a..de233b4 100644 --- a/src/encoderDecoderFunctionts.ts +++ b/src/encoderDecoderFunctionts.ts @@ -1,4 +1,4 @@ -import { Message } from "protobufjs"; +import { Message } from "protobufjs/light"; import { getMetadataObject, hasMetadataObject } from "./metadataHelpers"; import { ensureBuffer } from "./utils"; diff --git a/test/benchmark.ts b/test/benchmark.ts index 04796ee..9ae0480 100644 --- a/test/benchmark.ts +++ b/test/benchmark.ts @@ -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";