Skip to content

production 模式 js 的tree shaking 没起作用 #233

Description

@xukaijie111

我用了lodash-es ,按需导入 import {cloneDeep} from "lodash-es"
最后的产物分析里,把lodash-es所有文件都打入了。
需要如何配置呢?让js tree shaking生效

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions