UNPKG

factom

Version:

Library to build applications on the Factom blockchain

28 lines (27 loc) 767 B
const path = require('path'); module.exports = { mode: 'production', entry: { 'factom': './src/factom.js', 'factom-struct': './src/factom-struct' }, output: { path: path.resolve(__dirname, 'dist'), filename: '[name].js', library: '[name]', libraryTarget: 'umd' }, module: { rules: [{ test: /\.js$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader', options: { presets: ['@babel/env'], plugins: ['@babel/transform-runtime', '@babel/transform-async-to-generator', '@babel/transform-modules-commonjs'] } } }] }, };