最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Lodash not TreeShaking with Webpack with Webpack 4? - Stack Overflow

programmeradmin1浏览0评论

I want to tree shake lodash as well as my unused multiply function from the generated bundle from webpack

I have 2 main files app.js & math.js

It contains the following code -

app.js

import map from "lodash/map";

import { sum } from "./math";

console.log("
发布评论

评论列表(0)

  1. 暂无评论