Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Fix toString() output for alternative types of plugin #116

Merged
merged 1 commit into from
Oct 21, 2018
Merged

Fix toString() output for alternative types of plugin #116

merged 1 commit into from
Oct 21, 2018

Conversation

edmorley
Copy link
Member

Previously the helper comments in the toString() output were incorrect for alternative forms of plugins (optimization.minimizer and resolve.plugins) and would refer to them as though they were instances of config.plugins instead.

Before:

/* config.plugin('name') */

After:

/* config.optimization.minimizer('name') */
/* config.resolve.plugin('name') */

Fixes #115.

Previously the helper comments in the `toString()` output were
incorrect for alternative forms of plugins (`optimization.minimizer`
and `resolve.plugins`) and would refer to them as though they were
instances of `config.plugins` instead.

Before:

`/* config.plugin('name') */`

After:

`/* config.optimization.minimizer('name') */`
`/* config.resolve.plugin('name') */`

Fixes #115.
@edmorley edmorley added the bug label Oct 21, 2018
@edmorley edmorley self-assigned this Oct 21, 2018
@edmorley edmorley requested a review from eliperelman October 21, 2018 17:25
Copy link
Member

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

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

👏

@edmorley edmorley merged commit 28e8fea into neutrinojs:master Oct 21, 2018
@edmorley edmorley deleted the fix-plugin-toString branch October 21, 2018 21:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

The inline comment generated by toString() for optimization.minimizer is wrong
2 participants