Navigation Menu

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

feat(GeneratorAPI): allow passing options to api.extendPackage #5149

Merged
merged 1 commit into from Feb 6, 2020

Conversation

sodatea
Copy link
Member

@sodatea sodatea commented Feb 5, 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

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

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.
@sodatea sodatea merged commit f5f4de0 into dev Feb 6, 2020
@sodatea sodatea deleted the extendPackage-options branch February 6, 2020 06:28
mactanxin pushed a commit to mactanxin/vue-cli that referenced this pull request 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to use "merge: false" in api.extendPackage
1 participant