UNPKG

@goranefbl/react-zendesk-chat

Version:
29 lines (27 loc) 727 B
const path = require('path'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'build'), filename: 'index.js', libraryTarget: 'commonjs2', // important, tells webpack not to pack dependendcies, and load them from parent. }, module: { rules: [ { test: /\.js$/, include: path.resolve(__dirname, 'src'), exclude: /(node_modules|bower_components|build)/, use: { loader: 'babel-loader', options: { presets: ['@babel/env'], }, }, }, ], }, externals: { react: 'commonjs react', // important, tells webpack not to pack dependendcies, and load them from parent. }, };