2018-07-23 15:12:18 +02:00
|
|
|
/* eslint-disable import/no-commonjs */
|
|
|
|
const path = require('path');
|
|
|
|
const FlowBabelWebpackPlugin = require('flow-babel-webpack-plugin');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
mode: 'none',
|
|
|
|
entry: './src/index.js',
|
|
|
|
output: {
|
|
|
|
filename: 'bundle.js',
|
|
|
|
path: path.resolve(__dirname, 'dist'),
|
2019-03-13 06:06:43 +01:00
|
|
|
libraryTarget: 'umd',
|
2018-07-23 15:12:18 +02:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
|
|
|
|
},
|
|
|
|
plugins: [new FlowBabelWebpackPlugin()],
|
2019-03-13 06:06:43 +01:00
|
|
|
externals: 'lbry-redux',
|
2018-07-23 15:12:18 +02:00
|
|
|
};
|