UNPKG

metro-transform-worker

Version:

🚇 Transform worker for Metro.

19 lines (17 loc) • 387 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true, }); exports.default = getMinifier; function getMinifier(minifierPath) { try { return require(minifierPath); } catch (e) { throw new Error( 'A problem occurred while trying to fetch the minifier. Path: "' + minifierPath + '", error message: ' + e.message, ); } }