From 1a1d069cd593b1f271a284de542559141a648634 Mon Sep 17 00:00:00 2001 From: Sebastian Fitzner Date: Fri, 23 Feb 2018 11:08:57 +0100 Subject: [PATCH] Add workaround for webpack & browserify usage, see https://github.com/KyleAMathews/deepmerge/issues/87 --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index d13de05..6eccc3c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,7 +11,7 @@ /** * Imports */ -import merge from 'deepmerge'; +import * as mergeHelper from 'deepmerge'; import mixinHelper, { mixinType } from '@veams/helpers/lib/function/mixin'; import makeIdHelper from '@veams/helpers/lib/utility/make-id'; @@ -21,6 +21,9 @@ export interface BaseConfig { options?: any; } +// Workaround for browserify and webpack bundling +const merge = mergeHelper.default || mergeHelper; + class Base { options: any; _namespace: string;