UNPKG

react-looking-glass

Version:

A react component for magnifying images with a magnifying/looking glass effect

29 lines (27 loc) 686 B
const path = require('path'); module.exports = { entry: './src/LookingGlass.js', output: { path: path.resolve(__dirname, 'build'), filename: 'index.js', libraryTarget: 'commonjs2' }, module: { rules: [ { test: /\.js$/, include: path.resolve(__dirname, 'src'), exclude: /(node_modules|build)/, use: { loader: 'babel-loader', options: { presets: ['@babel/preset-env'] } } } ] }, externals: { 'react': 'commonjs react' } };