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

Commit

Permalink
Export Fabric
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
djmetzle committed Sep 16, 2022
1 parent 020c179 commit 75d313e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ImageMarkupBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const Shapes = require("./shapes");
const path = require("path");

const Fabric = require("fabric").fabric;
module.exports.Fabric = Fabric;

/**
* Expects a Fabric.js Canvas
Expand Down

0 comments on commit 75d313e

Please sign in to comment.