Currently, I am in the process of developing a module for an application that is utilizing Lodash 3. However, I would like to upgrade to Lodash 4 in this new module. This particular module is being coded in TypeScript and bundled with Webpack.
Initially, I had imported Lodash using import * as _ from 'lodash'
in the new module assuming it wouldn't overwrite window._, but unfortunately it did. After encountering this problem, I found a related issue on GitHub at https://github.com/lodash/lodash/issues/1798. It appears to be similar to what I am experiencing, and it seems to have been addressed in version 4.14.0, while I am currently using Lodash 4.15.0.
I now wonder if there are specific steps I need to follow while importing Lodash into my code to prevent it from overwriting window._?