text: import path from 'path';
  
  export default () => ({
    entry: './src/index.js',
    output: {
      path: path.resolve(__dirname, 'dist'),
      libraryTarget: 'umd',
      library: 'spotifyWrapper',
    },
    devtool: 'source-map',
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /(node_modules|bower_components)/,
          use: 'babel-loader',
        },
      ],
    },
  });
  