Skip to content

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

Open
@xukaijie111

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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