/
moreqqq
/
DeliveryService
Обзор
Документация
Войти
/
moreqqq
/
DeliveryService
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
server/node_modules/tsconfig-paths-webpack-plugin/examples/referenceExample/webpack.config.js
37 строк
830 B
moreqqq
написал приложение
29 май 2026, 22:02
29 май 2026, 22:02
ad51790
Код
Авторство
О чём код?
const path = require("path"); const TsconfigPathsPlugin = require("../"); module.exports = { mode: "development", context: path.resolve(__dirname, "src"), entry: "./index", output: { path: path.join(__dirname, "temp"), filename: "bundle.js", }, module: { rules: [ { test: /\\.tsx?$/, exclude: /^node_modules/, loader: "ts-loader", options: { configFile: "./example/tsconfig.json", }, }, ], }, resolve: { extensions: [".ts", ".tsx", ".js"], plugins: [ new TsconfigPathsPlugin({ configFile: "./tsconfig.json", logLevel: "info", extensions: [".ts", ".tsx"], mainFields: ["browser", "main"], references: ["../example/tsconfig.json"] // baseUrl: "/foo" }), ], }, };