text: const resources = require('../../scripts/webpack/webpack-resources');
  const getResolveAlias = require('../../scripts/webpack/getResolveAlias');
  
  const BUNDLE_NAME = 'example-data';
  const IS_PRODUCTION = process.argv.indexOf('--production') > -1;
  
  module.exports = resources.createConfig(BUNDLE_NAME, IS_PRODUCTION, {
    entry: {
      [BUNDLE_NAME]: './lib/index.js',
    },
  
    output: {
      libraryTarget: 'var',
      library: 'FabricExampleData',
    },
  
    externals: [{ react: 'React' }, { 'react-dom': 'ReactDOM' }],
  
    resolve: {
      alias: getResolveAlias(true /*useLib*/),
    },
  });
  