-
Notifications
You must be signed in to change notification settings - Fork 492
tree-shaking doesn't work well for UMD bundle with axios and dayjs #992
Copy link
Copy link
Closed
Labels
kind: supportAsking for support with something or a specific use caseAsking for support with something or a specific use caseproblem: removed issue templateOP removed the issue template without good causeOP removed the issue template without good causeproblem: staleIssue has not been responded to in some timeIssue has not been responded to in some timescope: upstreamIssue in upstream dependencyIssue in upstream dependency
Description
Activity
Metadata
Metadata
Assignees
Labels
kind: supportAsking for support with something or a specific use caseAsking for support with something or a specific use caseproblem: removed issue templateOP removed the issue template without good causeOP removed the issue template without good causeproblem: staleIssue has not been responded to in some timeIssue has not been responded to in some timescope: upstreamIssue in upstream dependencyIssue in upstream dependency
Current Behavior
I used tsdx to create a project A, and import axios, dayjs, and export. then I use tsdx to create project B and import some function from project A, but not using axios, dayjs. and I find axios/dayjs code in project B UMD bundle
Flow
project A
tsdx create A (select basic)change src/index.ts
npm publishproject B
tsdx create B (select basic)change src/index.ts
change project b tsdx.config.js
Check UMD bundle, although I did not use axios, the bundle has this part of the code