diff --git a/packages/web/src/index.ts b/packages/web/src/index.ts index 761ba5e..b97b3b8 100644 --- a/packages/web/src/index.ts +++ b/packages/web/src/index.ts @@ -8,7 +8,7 @@ export { }; export type { Config, ImageSource }; -import { memoize } from 'lodash'; +import lodash from 'lodash'; import ndarray from 'ndarray'; import { initInference, runInference } from './inference'; import { preload as preloadResources } from './resource'; @@ -16,6 +16,7 @@ import { Config, validateConfig } from './schema'; import * as utils from './utils'; import { ImageSource } from './utils'; +const { memoize } = lodash; const init = memoize(initInference, (config) => JSON.stringify(config)); async function preload(configuration?: Config): Promise {