Skip to content

Upgrade easy import #79

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

Merged
merged 2 commits into from
Apr 18, 2017
Merged

Upgrade easy import #79

merged 2 commits into from
Apr 18, 2017

Conversation

simonsmith
Copy link
Member

This fixes the long overdue #72

@simonsmith simonsmith requested a review from giuseppeg April 17, 2017 19:03
This offers more robust checks and is unit tested separately.
@simonsmith simonsmith force-pushed the upgrade-easy-import branch from 1f5e2c2 to e106291 Compare April 17, 2017 19:10
@@ -111,16 +114,17 @@ function mergeOptions(options) {
options = options || {};
const mergedOpts = assign({}, defaults, options);
const easyImportOpts = mergedOpts['postcss-easy-import'];
const origTransform = easyImportOpts.transform;
Copy link
Member

Choose a reason for hiding this comment

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

should we add a warning here so that we can avoid a major release?

if (easyImportOpts.transform && !easyImportOpts.load) {
  console.warn('Suitcss uses `postcss-easy-import` v2 which renames `transform` to `load`')
}

Copy link
Member Author

@simonsmith simonsmith Apr 18, 2017

Choose a reason for hiding this comment

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

Why avoid a major? I think the removal of transform would require one anyway. And potentially the upgrade of the stylelint config too

Copy link
Member

Choose a reason for hiding this comment

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

ah ok major sounds good

Copy link
Member

@giuseppeg giuseppeg left a comment

Choose a reason for hiding this comment

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

👍

@simonsmith simonsmith merged commit 1e70e27 into master Apr 18, 2017
@simonsmith simonsmith deleted the upgrade-easy-import branch April 18, 2017 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants