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

Implement the optimizeDeps() helper #1623

Merged
merged 4 commits into from
Oct 11, 2023

Conversation

lolmaus
Copy link
Collaborator

@lolmaus lolmaus commented Oct 4, 2023

...that can be used in vite.config.js.

It would prevent users from accidentally overriding the important keys (for now it's just exclude).

Comes with the very basic Jest setup, copied from a sibling folder.

Fixes #1621.

Copy link
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to add a re-export for this so that it can be consumed from a test app like this: https://github.com/embroider-build/embroider/blob/main/packages/vite/index.mjs

On that note I think you should use this function in the actual test app and make sure that it works as expected https://github.com/embroider-build/embroider/blob/main/tests/vite-app/vite.config.mts#L26-L28

@lolmaus
Copy link
Collaborator Author

lolmaus commented Oct 9, 2023

@mansona Done.

Copy link
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've manually tested the vite app and I'm happy that it's working 👍

@mansona mansona merged commit 0a697b4 into embroider-build:main Oct 11, 2023
202 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

maybe have optimizeDeps come from embroider i.e. don't add @embroider/macros but we add it in our function
2 participants