* @janhq/plugin-core module * refactor web to use exported services from module * refactor data-plugin to provide DAL & move model logics to model management plugin * model-management in TS * add ci auto package, increate version, and publish to npm repository * chore: storage operations * chore: hybrid data-plugin esm & cjs module * chore: PouchDB Driver * chore: documentation --------- Co-authored-by: Hien To <hien@jan.ai> Co-authored-by: Service Account <service@jan.ai>
29 lines
685 B
JavaScript
29 lines
685 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = {
|
|
experiments: { outputModule: true },
|
|
entry: "./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
|
|
},
|
|
resolve: {
|
|
extensions: [".ts", ".js"],
|
|
},
|
|
optimization: {
|
|
minimize: false
|
|
},
|
|
// Add loaders and other configuration as needed for your project
|
|
};
|