jinni-chatbot
Version:
Jinni Chatbot engages with visitors, captures all the required details, and filters motivated vendors and landlords through AI-powered fully customisable conversations. It automatically books valuations and callbacks, and even enables you to chat with pot
32 lines (31 loc) • 798 B
JavaScript
const path = require("path");
module.exports = {
entry: "./src/index.js", // Entry point for your library
output: {
path: path.resolve(__dirname, "dist"),
filename: "index.js",
library: "JinniChatbot", // Library name
libraryTarget: "umd", // Make it compatible with different environments
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env", "@babel/preset-react"],
},
},
},
],
},
resolve: {
extensions: [".js", ".jsx"],
},
externals: {
react: "React", // Avoid bundling React
"react-dom": "react-dom", // Avoid bundling ReactDOM
},
};