-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
feat: enable usage of function as library fileName, close #3585 #3625
Conversation
Changed the existing lib tests within the playground package |
I just wonder: don't we have a test only for |
Yeah would be a good idea, I didn't get it to work without creating multiple playgrounds though 🤔 |
Maybe you can extract the logic and create a unit-test for it 🤔 |
Ok, I gave it a shot with the unit tests |
Nevermind 🤦 I mixed some PRs, sorry Test run successfully here: https://github.com/vitejs/vite/pull/3625/checks?check_run_id=2727359038#step:10:32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, seems we need a non-null assertion at the calling location
Yeah, it should be fixed now |
Description
This PR would enable users of the library mode to use a function to define the output filename. (As discussed in #3585)
I didn't see existing tests in this area, but maybe I missed it, glad to add some if required.
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).