const path = require('path'); module.exports = { entry: ['core-js/fn/array/from', path.resolve(__dirname, 'src/index.js')], output: { path: path.resolve(__dirname, 'dist'), libraryTarget: 'umd', library: 'feather', }, devtool: 'source-map', module: { rules: [ { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/, }, ], }, };