san-cli-service
Version:
定制化的前端工程构建工具
13 lines (11 loc) • 443 B
JavaScript
/**
* Copyright (c) Baidu Inc. All rights reserved.
*
* This source code is licensed under the MIT license.
* See LICENSE file in the project root for license information.
*
* @file loader 包裹函数,将参数规范好,loader 直接用
* @author ksky521
*/
module.exports = (loaderFn, defaultOptions = {}) => (options = {}, projectOptions = {}, api) =>
loaderFn(Object.assign(defaultOptions, options), projectOptions, api);