al-quran.reflectslight.io/webpack.common.js
2024-03-16 14:07:53 -03:00

22 lines
468 B
JavaScript

const path = require("path");
const process = require("process");
module.exports = {
resolve: {
modules: [path.resolve(__dirname, "node_modules")],
alias: {
"@json": path.resolve(__dirname, "src/json"),
"~": path.resolve(__dirname, "src/js"),
},
extensions: [".js", ".ts", ".tsx", ".json"],
},
module: {
rules: [
{
test: /\.tsx?$/,
use: "ts-loader",
exclude: /node_modules/,
},
],
},
};