lodash-tree-shaking

This is just a wrapper around lodash. This Module is build so webpack can treeshake lodash.

Usage no npm install needed!

<script type="module">
  import lodashTreeShaking from 'https://cdn.skypack.dev/lodash-tree-shaking';
</script>

README

lodash-tree-shaking

This is just a wrapper around lodash. This Module is build so webpack can treeshake lodash.

Install

  1. run yarn add lodash-tree-shaking
  2. Replace your imports:
// before
import { flatMap } from 'lodash'

// now
import { flatMap } from 'lodash-tree-shaking'