UNPKG

emoji-mart

Version:

Customizable Slack-like emoji picker for React

48 lines (42 loc) 777 B
var path = require('path') module.exports = { entry: path.resolve('src/index.js'), output: { path: path.resolve('dist'), filename: 'emoji-mart.js', library: 'EmojiMart', libraryTarget: 'umd', }, externals: [{ 'react': { root: 'React', commonjs2: 'react', commonjs: 'react', amd: 'react', }, }], module: { loaders: [ { test: /\.js$/, loader: 'babel-loader', include: [ path.resolve('src'), path.resolve('data'), ], }, { test: /\.svg$/, loader: 'svg-inline', include: [ path.resolve('src/svgs'), ], }, ], }, resolve: { extensions: ['', '.js'], }, plugins: [], bail: true, }