/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v5.108.3
examples/custom-javascript-parser/webpack.config.js
92 строки
2 KB
Alexander Akait
chore: fix examples (#20780)
07 апр 2026, 16:14
Не верифицирован
07 апр 2026, 16:14
47bb540
Код
Авторство
О чём код?
"use strict"; const acornParse = require("./internals/acorn-parse.js"); const meriyahParse = require("./internals/meriyah-parse.js"); const oxcParse = require("./internals/oxc-parse.js"); /** @type {import("webpack").Configuration[]} */ const config = [ // oxc { mode: "production", optimization: { chunkIds: "deterministic" // To keep filename consistent between different modes (for example building only) }, output: { filename: "oxc.[name].js" }, module: { // Global override parser: { javascript: { parse: oxcParse } } // Override on the module level, only for modules which match the `test` // rules: [ // { // test: /\.js$/, // parser: { // parse: oxcParse // } // } // ] } }, // meriyah { mode: "production", optimization: { chunkIds: "deterministic" // To keep filename consistent between different modes (for example building only) }, output: { filename: "meriyah.[name].js" }, module: { // Global override parser: { javascript: { parse: meriyahParse } } // Override on the module level, only for modules which match the `test` // rules: [ // { // test: /\.js$/, // parser: { // parse: meriyahParse // } // } // ] } }, // acorn { mode: "production", output: { filename: "acorn.[name].js" }, optimization: { chunkIds: "deterministic" // To keep filename consistent between different modes (for example building only) }, module: { // Global override parser: { javascript: { parse: acornParse } } // Override on the module level, only for modules which match the `test` // rules: [ // { // test: /\.js$/, // parser: { // parse: acornParse // } // } // ] } } ]; module.exports = config;