/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/wasm-simple/webpack.config.js
26 строк
497 B
Alexander Akait
refactor: examples (#20085)
04 ноя 2025, 18:22
Не верифицирован
04 ноя 2025, 18:22
196e19e
Код
Авторство
О чём код?
"use strict"; /** @type {import("webpack").Configuration} */ const config = { // mode: "development" || "production", output: { webassemblyModuleFilename: "[hash].wasm", publicPath: "dist/" }, module: { rules: [ { test: /\.wasm$/, type: "webassembly/async" } ] }, optimization: { chunkIds: "deterministic" // To keep filename consistent between different modes (for example building only) }, experiments: { asyncWebAssembly: true } }; module.exports = config;