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

Use canvas-prebuilt instead of canvas in order to drop external dependencies #181

Merged
merged 3 commits into from
Oct 20, 2018

Conversation

Munter
Copy link
Member

@Munter Munter commented Oct 20, 2018

No description provided.

Copy link
Member

@papandreou papandreou left a comment

Choose a reason for hiding this comment

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

Great! 🙇

try {
Canvas = require('canvas');
} catch (e) {}
const Canvas = canvasPrebuilt.Canvas;
Copy link
Member

Choose a reason for hiding this comment

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

Could use destructuring?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure. It's that ok with our node version support?

Copy link
Member

Choose a reason for hiding this comment

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

Destructuring assignment is node 6.5.0+ so yeah. We should also lebab/prettierify the code a bit :)

Copy link
Member

Choose a reason for hiding this comment

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

Getting ready to introduce prettier etc. over here: #182

@Munter Munter merged commit 0afc260 into master Oct 20, 2018
@Munter Munter deleted the canvas-prebuilt branch October 20, 2018 13:58
@Munter Munter mentioned this pull request Oct 20, 2018
This pull request was closed.
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