UNPKG

react-format-currency

Version:

React component to format currency in an input or as a text field

38 lines (35 loc) 660 B
const path = require('path'); const reactExternal = { root: 'React', commonjs2: 'react', commonjs: 'react', amd: 'react', }; module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'build'), filename: 'index.js', library: 'react-format-currency', libraryTarget: 'umd', }, module: { rules: [ { test: /\.(js|jsx)$/, exclude: /(node_modules|bower_components|build)/, use: [ { loader: 'babel-loader', }, ], }, ], }, resolve: { extensions: ['.js', '.jsx'], }, externals: { react: reactExternal, }, };