Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to tree-shake dependencies? #258

Closed
JacobWeisenburger opened this issue Mar 6, 2023 · 1 comment
Closed

Is there a way to tree-shake dependencies? #258

JacobWeisenburger opened this issue Mar 6, 2023 · 1 comment
Labels

Comments

@JacobWeisenburger
Copy link

I'm looking for a way to tree-shake dependencies such as lodash.

I'm not really sure what other info you would need from me, so please let me know how I can help in getting this answered.

@dsherret
Copy link
Member

dsherret commented Apr 7, 2023

No, that is out of scope. You can insert something that will alter the output in a post build step:

await build({
  // etc...
  postBuild() {
    // delete files or run some kind of tree shaker here
  }
});

That will be run before running the tests.

@dsherret dsherret closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants