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

Convert comma separated presets/plugins into an array #37

Merged
merged 2 commits into from
Feb 26, 2018

Conversation

hiroppy
Copy link
Member

@hiroppy hiroppy commented Feb 26, 2018

No description provided.

let presets = config.presets;

if (!Array.isArray(presets) && typeof presets === 'string') {
presets = config.presets = [config.presets];
Copy link
Member

Choose a reason for hiding this comment

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

We actually need it to be an array of strings not just make it an array 😛
So like a split on ","?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, I'll fix

@hzoo hzoo added the enhancement New feature or request label Feb 26, 2018
@hiroppy hiroppy force-pushed the feature/convert-comma-to-array branch from 81f3763 to 494ce9c Compare February 26, 2018 15:27
@hiroppy hiroppy force-pushed the feature/convert-comma-to-array branch from 494ce9c to 3ad2f31 Compare February 26, 2018 15:29
@hiroppy
Copy link
Member Author

hiroppy commented Feb 26, 2018

@hzoo PTAL:)

@hzoo hzoo merged commit d8e4263 into babel:master Feb 26, 2018
@hiroppy hiroppy deleted the feature/convert-comma-to-array branch February 26, 2018 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants