/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/wasm-emscripten/webpack.config.js
24 строки
470 B
Alexander Akait
docs(examples): add wasm-emscripten source-phase import example (#21230)
21 июн 2026, 01:01
Не верифицирован
21 июн 2026, 01:01
88e2531
Код
Авторство
О чём код?
"use strict"; /** @type {import("webpack").Configuration} */ const config = { // mode: "development" || "production", module: { rules: [ { test: /\.wasm$/, type: "webassembly/async" } ] }, experiments: { // `import source` for WebAssembly: compile (not instantiate) the module. asyncWebAssembly: true, sourceImport: true }, optimization: { chunkIds: "deterministic" // keep filenames stable between modes } }; module.exports = config;