Skip to content

Fix build with SVG support enabled #1206

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

Conversation

Khorynthium
Copy link

@Khorynthium Khorynthium commented Jul 18, 2018

This PR fixes build with svg support enabled. It replaces call of inexistent error method of Image class with an exception. In addition, It adjusts build process to copy librsvg and its dependencies into destination folder (this is what I had to do manually on each build).

P.S.: I have no experience in node modules development, so this PR must be examined thoroughly. :)

Copy link
Collaborator

@zbjornson zbjornson left a comment

Choose a reason for hiding this comment

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

Awesome, thanks! And good catch on fixing the post-build copies.

I'm going push to this branch to add librsvg to our CI real quick, then I'll merge.

@zbjornson zbjornson merged commit 2dce213 into Automattic:master Jul 18, 2018
@Khorynthium Khorynthium deleted the issue_1205_build_error_with_svg_support branch July 19, 2018 06:30
@nrkn nrkn mentioned this pull request Aug 2, 2018
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