27 lines
583 B
JavaScript
27 lines
583 B
JavaScript
|
/* 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'),
|
||
|
libraryTarget: 'umd'
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
exclude: /node_modules/,
|
||
|
loader: 'babel-loader',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
resolve: {
|
||
|
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
|
||
|
},
|
||
|
plugins: [new FlowBabelWebpackPlugin()],
|
||
|
};
|