* chore: vectordb driver plugin # Conflicts: # plugins/monitoring-plugin/package.json * chore: add langchain & index documents * feat: chat with documents plugin * chore: correct build step --------- Co-authored-by: namvuong <22463238+vuonghoainam@users.noreply.github.com>
36 lines
765 B
JavaScript
36 lines
765 B
JavaScript
const path = require("path");
|
|
const webpack = require("webpack");
|
|
const packageJson = require("./package.json");
|
|
|
|
module.exports = {
|
|
experiments: { outputModule: true },
|
|
entry: "./src/index.ts",
|
|
mode: "production",
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: "ts-loader",
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
PLUGIN_NAME: JSON.stringify(packageJson.name),
|
|
MODULE_PATH: JSON.stringify(`${packageJson.name}/${packageJson.module}`),
|
|
}),
|
|
],
|
|
output: {
|
|
filename: "index.js",
|
|
path: path.resolve(__dirname, "dist"),
|
|
library: { type: "module" },
|
|
},
|
|
resolve: {
|
|
extensions: [".ts", ".js"],
|
|
},
|
|
optimization: {
|
|
minimize: false,
|
|
},
|
|
};
|