@actually-colab/editor-client
Version:
API Client for Actually Colab's editor
33 lines (29 loc) • 597 B
text/typescript
import type { Configuration } from 'webpack';
import path from 'path';
import nodeExternals from 'webpack-node-externals';
const config: Configuration = {
mode: 'production',
target: 'node',
entry: {
index: './src/index.ts',
},
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
},
],
},
resolve: {
extensions: ['.ts', '.js'],
},
output: {
libraryTarget: 'commonjs',
filename: '[name].js',
path: path.resolve(__dirname, 'dist'),
},
devtool: 'source-map',
externals: [nodeExternals()],
};
export default config;