al-quran.reflectslight.io/webpack.common.js
2024-03-21 16:58:52 -03:00

25 lines
573 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: [{
loader: "ts-loader",
options: {transpileOnly: true, onlyCompileBundledFiles: true}
}],
exclude: /node_modules/,
},
],
},
};