UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

10 lines (8 loc) 269 B
const { cwd } = require('process'); module.exports = (path, options) => { if (path === 'fabric') { return `${cwd()}/fabric.ts`; } // Call the defaultResolver, so we leverage its cache, error handling, etc. return options.defaultResolver(path, options); };