UNPKG

next-bundle-analyzer

Version:
21 lines (18 loc) 535 B
'use strict'; function getInternalOptions({ clientOnly = true, enabled = true, format = 'html', html = {}, json = {}, reportDir = 'analyze', reportFilename = 'bundles', } = {}) { const { open = true } = html; const { filter = null } = json; if (!Array.isArray(format)) { format = [format]; } return { clientOnly, enabled, format, html: { open }, json: { filter }, reportDir, reportFilename, }; } exports.getInternalOptions = getInternalOptions;