squiggle/packages/squiggle-lang/webpack.config.js

27 lines
458 B
JavaScript
Raw Permalink Normal View History

2022-03-21 23:40:14 +00:00
const path = require('path');
module.exports = {
mode: 'production',
entry: './src/js/index.ts',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
library: {
name: 'squiggle_lang',
type: 'umd',
},
},
};