-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
How to use "merge: false" in api.extendPackage #4779
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
Comments
Building a preset and was just wondering this exact thing. |
9 tasks
haoqunjiang
added a commit
that referenced
this issue
Feb 6, 2020
Currently, 3 options are implemented: - options.prune (defaults to `false`) - Remove null or undefined fields from the object after merging. - options.merge (defaults to `true`) deep-merge nested fields, note that dependency fields are always deep merged regardless of this option. - options.warnIncompatibleVersions (defaults to `true`) Output warning if two dependency version ranges don't intersect. Closes #4779
That comment was outdated documentation referring to an option that was removed long before @vue/cli 3 stable release. It will be added back in the next version. |
mactanxin
pushed a commit
to mactanxin/vue-cli
that referenced
this issue
Feb 11, 2020
…js#5149) Currently, 3 options are implemented: - options.prune (defaults to `false`) - Remove null or undefined fields from the object after merging. - options.merge (defaults to `true`) deep-merge nested fields, note that dependency fields are always deep merged regardless of this option. - options.warnIncompatibleVersions (defaults to `true`) Output warning if two dependency version ranges don't intersect. Closes vuejs#4779
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
4.0.5
Environment info
Steps to reproduce
Create a plugin and try to override a field in package.json in a generator.
What is expected?
In the documentation of
api.extendPackage()
, it is stated that "Nested fields are deep-merged unless{ merge: false }
is passed."What is actually happening?
I don't see any part that handles this case in the code, I don't known how to override a field 🙁
The text was updated successfully, but these errors were encountered: