Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Export Fabric #77

Merged
merged 3 commits into from
Sep 19, 2022
Merged

Export Fabric #77

merged 3 commits into from
Sep 19, 2022

Conversation

djmetzle
Copy link
Contributor

We're using a custom build of Fabric.js internally. In order to facilitate dependency management, export our Fabric dependency from Builder. This lets us avoid manually managing this peer dependency.

We intend upstream to explicitly reuse this Fabric.js dependency:
https://github.com/iFixit/ifixit/blob/394eeb1c6164e88360827aa9bc3e6013f661e44d/carpenter-frontend/Shared/FrameModules/Image/image_markers_next.js#L258

Ref: https://github.com/iFixit/ifixit/issues/43782

CC @iFixit/devops

We do not need to import Fabric on each init of the Builder.
We're using a custom build of Fabric.js internally, for both
`node-markup`, and the main app/UI. To make dependency management
easier, lets export our Fabric dependency from the builder. This lets us
avoid manually managing the peer dependency between the two.
@danielbeardsley
Copy link
Member

CR 👍

Good call.

When we update to the latest fabric, do we still need to use a custom build?

Copy link
Contributor

@jarstelfox jarstelfox left a comment

Choose a reason for hiding this comment

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

CR 🌵

@djmetzle djmetzle merged commit 8dddc66 into master Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants