UNPKG

sofya.transcription

Version:

a JavaScript library that provides a robust and flexible solution for real-time audio transcription. It is designed to transcribe audio streams and can be easily integrated into web applications.

38 lines (36 loc) 734 B
const path = require("path"); const Dotenv = require("webpack-dotenv-plugin"); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { entry: "./src/index.js", output: { filename: "bundle.js", path: path.resolve(__dirname, "dist"), library: { name: "SofyaTrancription", type: "umd", }, globalObject: "this", }, resolve: { extensions: [".js", ".ts"], }, module: { rules: [ { test: /\.ts$/, use: "ts-loader", exclude: /node_modules/, }, ], }, plugins: [ new Dotenv(), new CopyWebpackPlugin({ patterns: [ { from: 'src/*.d.ts', to: '[name][ext]' } ] }) ], mode: "development", };