27 lines
461 B
JavaScript
27 lines
461 B
JavaScript
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
mode: 'production',
|
||
|
entry: './src/index.ts',
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.tsx?$/,
|
||
|
use: 'ts-loader',
|
||
|
exclude: /node_modules/,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: ['.js', '.tsx', '.ts'],
|
||
|
},
|
||
|
output: {
|
||
|
filename: 'bundle.js',
|
||
|
path: path.resolve(__dirname, 'dist'),
|
||
|
library: {
|
||
|
name: 'squiggle_components',
|
||
|
type: 'umd',
|
||
|
},
|
||
|
},
|
||
|
};
|