chore: add facades refactor: core module export refactor: inference plugin - deprecate function registering (#537) * refactor: revamp inference plugin as class - deprecate function registering * refactor: monitoring plugin - deprecate service registering (#538) refactor: revamp inference plugin as class - deprecate function registering chore: update import refactor: plugin revamp - model management chore: update build steps and remove experimental plugins refactor: remove pluggable electron chore: add sorting for conversations chore: build plugins for testing chore: consistent plugin directory name chore: docs chore: fix CI chore: update conversation prefix
36 lines
905 B
JavaScript
36 lines
905 B
JavaScript
const path = require("path");
|
|
const webpack = require("webpack");
|
|
const packageJson = require("./package.json");
|
|
|
|
module.exports = {
|
|
experiments: { outputModule: true },
|
|
entry: "./src/index.ts", // Adjust the entry point to match your project's main file
|
|
mode: "production",
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: "ts-loader",
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
output: {
|
|
filename: "index.js", // Adjust the output file name as needed
|
|
path: path.resolve(__dirname, "dist"),
|
|
library: { type: "module" }, // Specify ESM output format
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
MODULE: JSON.stringify(`${packageJson.name}/${packageJson.module}`),
|
|
}),
|
|
],
|
|
resolve: {
|
|
extensions: [".ts", ".js"],
|
|
},
|
|
optimization: {
|
|
minimize: false,
|
|
},
|
|
// Add loaders and other configuration as needed for your project
|
|
};
|