/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/reexport-components/webpack.config.js
31 строка
552 B
Alexander Akait
refactor: examples (#20085)
04 ноя 2025, 18:22
Не верифицирован
04 ноя 2025, 18:22
196e19e
Код
Авторство
О чём код?
"use strict"; const path = require("path"); /** @type {import("webpack").Configuration} */ const config = { module: { rules: [ { test: /\.js$/, include: [path.resolve(__dirname, ".")], use: { loader: "babel-loader", options: { presets: ["@babel/react"] } } } ] }, optimization: { // get readable names in production too chunkIds: "named", moduleIds: "named", // enable some optimizations in dev mode too for showcasing sideEffects: true, usedExports: true } }; module.exports = config;