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

optimizeDeps option ignores subpaths of provided package #352

Open
xzilja opened this issue Aug 29, 2022 · 0 comments
Open

optimizeDeps option ignores subpaths of provided package #352

xzilja opened this issue Aug 29, 2022 · 0 comments

Comments

@xzilja
Copy link

xzilja commented Aug 29, 2022

I'm npm installing package called valtio that has vanilla export which is accessed in code via

import { someFunc } from "valtio/vanilla"

I specify following esbuild plugin options

optimizeDeps: {
    include: ['valtio']
}

However, valtio package doesn't get bundled. I can achieve what I'm after by changing plugin option to specific import i.e. include: ['valtio/vanilla'].

It would be great if it was possible to provide some sort of wildcard like include: ['valtio/*'] or include all subpaths of package by default maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant