UNPKG

@zohodesk/client_build_tool

Version:

A CLI tool to build web applications and client libraries

21 lines (15 loc) 617 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.configChunkHierarchyPlugin = configChunkHierarchyPlugin; var _modeUtils = require("../common/modeUtils"); var _ChunkHierarchyPlugin = _interopRequireDefault(require("../custom_plugins/ChunkHierarchyPlugin")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /* eslint-disable no-use-before-define */ function configChunkHierarchyPlugin(options) { if (options.chunkGraph.enable) { return new _ChunkHierarchyPlugin.default(options.chunkGraph.fileName); } return null; }