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

fix: give user options precedence over defaults #1

Merged
merged 1 commit into from
Aug 21, 2020
Merged

fix: give user options precedence over defaults #1

merged 1 commit into from
Aug 21, 2020

Conversation

ky-is
Copy link
Contributor

@ky-is ky-is commented Aug 21, 2020

Object.assign writes to the target object in order of its parameters, so putting options before defaultOptions would mean you can't override the defaults. Probably just a small oversight.

Thanks for this tool by the way! Importing+exporting components in <script setup> feels so wrong haha.

@antfu antfu merged commit 2cee5fc into unplugin:master Aug 21, 2020
@antfu
Copy link
Member

antfu commented Aug 21, 2020

Hmm, it's my mistake. Thanks!

@antfu
Copy link
Member

antfu commented Aug 21, 2020

0.2.5 released with your fix

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

Successfully merging this pull request may close these issues.

None yet

2 participants