text: const { source } = require('./api-flow-config.js')
  
  const path = require('path')
  
  const config = {
    target: 'web',
    entry: path.resolve(__dirname, '../Importer.js'),
    output: {
      path: path.resolve(__dirname, '../../../../dist/paw/', source.identifier),
      filename: source.title + '.js',
      libraryTarget: 'umd'
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          use: 'babel-loader',
          include: [ path.resolve(__dirname, '../../../../src'), path.resolve(__dirname, '../') ]
        },
        {
          test: /\.json$/,
          use: 'json-loader',
          include: [ path.resolve(__dirname, '../../../../') ]
        }
      ],
      noParse: /node_modules\/json-schema\/lib\/validate\.js/
    },
    resolve: {
      alias: {
        'api-flow-config$': path.resolve(__dirname, './api-flow-config.js')
      }
    },
    node: {
      fs: false,
      request: false,
      net: false,
      tls: false
    }
  }
  module.exports = config
  