Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

fix include/exclude for built-ins #102

Merged
merged 3 commits into from
Dec 16, 2016
Merged

fix include/exclude for built-ins #102

merged 3 commits into from
Dec 16, 2016

Conversation

hzoo
Copy link
Member

@hzoo hzoo commented Dec 16, 2016

No description provided.

@hzoo hzoo added the i: bug label Dec 16, 2016
return opts;
return {
all: opts,
plugins: opts.filter((opt) => !opt.match(/^(es\d+|web)\./)),
Copy link
Member Author

Choose a reason for hiding this comment

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

dumb but removes web/es6.

@existentialism
Copy link
Member

Worth adding a fixture using both include/exclude to prevent breaking that logic?

.filter((plugin) => exclude.indexOf(plugin) === -1)
.concat(include);
.filter((plugin) => exclude.plugins.indexOf(plugin) === -1)
.concat(include.plugins)
Copy link
Member

Choose a reason for hiding this comment

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

Nit: missing semi

@hzoo hzoo force-pushed the fix-valid-exclude-opt branch from cceb3a3 to 291907c Compare December 16, 2016 21:24
@hzoo hzoo merged commit a86d5dc into master Dec 16, 2016
@hzoo hzoo deleted the fix-valid-exclude-opt branch January 10, 2017 20:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants