From 2f69f838aa7387018dc8760b79ae99e613c45874 Mon Sep 17 00:00:00 2001 From: Piotr Krawiec Date: Sun, 27 Nov 2022 04:19:39 +0100 Subject: [PATCH] fix: node 18 by update source-map used by Terser to 0.7.4 (#999) Fixes minification failing on Node 18 with: > You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer https://github.com/mozilla/source-map/issues/454 There's also an open dependabot PR to bump the Terser version itself, I confirmed that also fixes the issue: [chore(deps-dev): bump terser from 5.10.0 to 5.15.1](https://github.com/vercel/ncc/pull/988) --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 8db24d88..465f555e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13920,9 +13920,9 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== source-map@^0.7.3, source-map@~0.7.2: - version "0.7.3" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" - integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== + version "0.7.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== source-map@~0.1.30: version "0.1.43"