react-native-svg-asset-plugin
Version:
Asset plugin for importing SVG images in React Native
15 lines (14 loc) • 359 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.load = load;
/**
* Load sharp conditionally.
*
* Since the sharp library is quite large, this is useful
* when you might not want to load the whole library
* at startup.
*/
async function load() {
const sharp = (await import("sharp")).default;
return sharp;
}