Open manthey opened 7 years ago
Because resemble is wrapped as a function, you can't reach the outputSettings method. The export could be changed like so:
outputSettings
module.exports = (function() { if (typeof window === "undefined") { global.window = overrideWindow() } if (typeof FileReader === "undefined") { global.FileReader = overrideFileReader() } if (typeof Image === "undefined") { global.Image = overrideImage() } const resemblejs = require('resemblejs'); return resemblejs; })();
So that the actual resemblejs import is returned, in which case it would still have the outputSettings method.
ty I gonna check this on weekend
Because resemble is wrapped as a function, you can't reach the
outputSettings
method. The export could be changed like so:So that the actual resemblejs import is returned, in which case it would still have the
outputSettings
method.