const _ = require('lodash');
const path = require('path');
const WebpackConfig = require('./webpack.config');

module.exports = (entry, output) => {
  return _.merge({}, WebpackConfig, {
    mode: 'development',
    entry: `./lib/${entry}`,
    output: {
      path: path.resolve(__dirname, '../dist'),
      filename: output
    }
  });
};

const _ = require('lodash');
const path = require('path');
const WebpackConfig = require('./webpack.config');

module.exports = (entry, output) => {
  return _.merge({}, WebpackConfig, {
    mode: 'development',
    entry: `./lib/${entry}`,
    output: {
      library: 'Formio',
      libraryTarget: 'umd',
      libraryExport: 'default',
      path: path.resolve(__dirname, '../dist'),
      filename: output
    }
  });
};

Make Webpack builds export correctly and use umd.
Make Webpack builds export correctly and use umd.
