I’m creating a plugin for the Chrome browser and using esbuild to create a single js file from the set of the typescript files, everything is fine except that esbuild does not include the function from the lodash-es, it the typescript file I have an import:
import { cloneDeep } from ‘lodash-es’;
and the very same import I see in the resulting plugin.js. All other typescript files are compiled and bundled just well.
My esbuild configuration is quite simple:
{
sourcemap: true,
keepNames: true,
minify: false,
bundle: true,
plugins: [lessLoader()]
}