✏️ Edit: prepareOptions.js
Path:
/home/thiqat5/mv2.thiqatech.com/node_modules/webpack-cli/bin/utils/prepareOptions.js
Size: 614 B · Modified: 2022-09-25 05:25:55 · Perm: 0755 · Writable
← Back to directory
👁 View
⬇ Download
"use strict"; module.exports = function prepareOptions(options, argv) { argv = argv || {}; options = handleExport(options); return Array.isArray(options) ? options.map(_options => handleFunction(_options, argv)) : handleFunction(options, argv); }; function handleExport(options) { const isES6DefaultExported = typeof options === "object" && options !== null && typeof options.default !== "undefined"; return isES6DefaultExported ? options.default : options; } function handleFunction(options, argv) { if (typeof options === "function") { options = options(argv.env, argv); } return options; }
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF