"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("./utils");
const nodeExternals = require('webpack-node-externals');
function getLibMetaConfig(paths) {
    const { libName, rootPath, srcPath, modulesPath, metaTempPath, tempPath, } = paths;
    const creator = utils_1.getConfigCreator(paths.webpackConfigMap.libDev);
    const params = {
        libName,
        context: rootPath,
        entry: metaTempPath,
        output: {
            path: tempPath,
            filename: 'meta.js',
            libraryTarget: 'commonjs2',
        },
        externals: [nodeExternals()],
        paths: {
            libSrcPath: srcPath,
            libModulesPath: modulesPath,
        },
        modules: [],
    };
    const config = creator(params);
    return Object.assign(Object.assign({}, config), { target: 'node' });
}
exports.getLibMetaConfig = getLibMetaConfig;
//# sourceMappingURL=lib.meta.js.map