// this requires `namedExports` to work with rollup: import {join } from "lodash"; // this works with both webpack and rollup and yields a smaller package: // import join from "lodash/join"; // this works everythere, of course: // import _ from "lodash" // this works everwhere because it's an external module and isn't bundled by webpack or rollup: import { BigNumber} from "bignumber.js"; export default function component(x:string[]) { // bar(x[0]) return join(x.map(y => new BigNumber(y).toFixed(5))); }