proxy-state-tree
Version:
An implementation of the Mobx/Vue state tracking approach, for library authors
37 lines (35 loc) • 721 B
JavaScript
const path = require('path')
const TerserPlugin = require('terser-webpack-plugin')
module.exports = {
mode: 'production',
entry: path.resolve('./es/index.js'),
output: {
path: path.resolve('dist'),
filename: 'proxy-state-tree.min.js',
},
devtool: 'source-map',
optimization: {
minimize: true,
minimizer: [
new TerserPlugin({
test: /\.js(\?.*)?$/i,
terserOptions: {
sourceMap: true,
module: true,
},
}),
],
},
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
include: path.resolve('src'),
options: {
presets: ['@babel/preset-env'],
},
},
],
},
}