GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — DefaultsError: `as` is not a supported option with webpack 5.111.1 and terser 5.51.2 · Issue #22288 · webpack/webpack Closed Copy link Labels area: optimizationTree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids)needs: reproductionNo runnable minimal reproduction yetregressionWorked in a previous release; pair with the Affected version field DescriptionHave you used AI?None Which part of webpack is affected?optimization (tree-shaking, splitChunks, concatenation) Bug DescriptionAfter upgrading to webpack 5.111.1, my index.html with embedded JS started causing problems. files: { 'index.html': ';(() => { if (localStorage && window.matchMedia) {...' and options: { as: 'script' ecma: 2020, ... ... then terser's if (croak) for (const i in ret) if (HOP(ret, i) && !HOP(defs, i)) { throw new DefaultsError("`" + i + "` is not a supported option", defs); } here's the call stack when minify is called: and where the worker throws an exception: versions: Link to Minimal Reproduction and steps to reproduceDescribed in the description Expected Behaviorwebpack works correctly with terser and html files. Actual Behaviorterser throws an exception about invalid Environment⬡ System: ──────────────────────────────────────────────────────────────────────── OS: Linux 7.2 Fedora Linux 44 (Forty Four) CPU: (16) x64 AMD Ryzen 7 PRO 7840HS w/ Radeon 780M Graphics Memory: 41.96 GB / 61.43 GB ⬡ Binaries: ──────────────────────────────────────────────────────────────────────── Node: 24.18.0 - /usr/bin/node Yarn: 4.18.0 - /usr/local/sbin/yarn npm: 11.16.0 - /usr/bin/npm Is this a regression?Yes (please specify version below) Last Working Versionv5.110.3 Additional ContextNo response Reacted by Tadayoshi Sato Activity
MetadataMetadataAssigneesLabelsarea: optimizationTree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids)needs: reproductionNo runnable minimal reproduction yetregressionWorked in a previous release; pair with the Affected version field TypeFieldsPriority None yet Effort None yet ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |