You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
581 B
JavaScript

const path = require("path");
module.exports = {
entry: "./src/app.ts",
mode: process.env.NODE_ENV || "production",
module: {
rules: [
{
test: /\.ts$/,
loader: "ts-loader",
},
],
},
devtool: "inline-source-map",
devServer: {
static: "./dist",
},
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "dist"),
},
resolve: {
extensions: [ ".ts", ".js", ".json" ],
},
experiments: {
topLevelAwait: true,
},
};