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

27 lines
458 B
JavaScript
Raw Normal View History

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