From c2215f78f0b2e65ee2400f9882a2a1d7ee0377d1 Mon Sep 17 00:00:00 2001 From: Davie Date: Mon, 5 Feb 2024 10:57:38 +0000 Subject: [PATCH] fixed typo in upgrade.md "transform Lit 3 code to work with Webpack 5" should be Webpack 4 as Lit 3 already works with Webpack 5 --- packages/lit-dev-content/site/docs/v3/releases/upgrade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lit-dev-content/site/docs/v3/releases/upgrade.md b/packages/lit-dev-content/site/docs/v3/releases/upgrade.md index fa78bfe92..937d35cac 100644 --- a/packages/lit-dev-content/site/docs/v3/releases/upgrade.md +++ b/packages/lit-dev-content/site/docs/v3/releases/upgrade.md @@ -39,7 +39,7 @@ This may be a breaking change if you need to support older browser versions and Webpack 4's internal parser doesn't support nullish coalescing (`??`), logical assignment (`??=`), or optional chaining (`?.`), which are syntaxes introduced in ES2021 so will throw a `Module parse failed: Unexpected token` when encountering those. -The preferred solution is to upgrade to Webpack 5 which does support parsing these newer JS syntax. However if you are unable to do so, it is possible to use `babel-loader` to transform Lit 3 code to work with Webpack 5. +The preferred solution is to upgrade to Webpack 5 which does support parsing these newer JS syntax. However if you are unable to do so, it is possible to use `babel-loader` to transform Lit 3 code to work with Webpack 4. To transpile Lit 3 in Webpack 4, install the following required babel packages: