Skip to content

Commit 563e508

Browse files
fixed typo in upgrade.md (#1303)
"transform Lit 3 code to work with Webpack 5" should be Webpack 4 as Lit 3 already works with Webpack 5
1 parent bcd88bb commit 563e508

File tree

1 file changed

+1
-1
lines changed
  • packages/lit-dev-content/site/docs/v3/releases

1 file changed

+1
-1
lines changed

packages/lit-dev-content/site/docs/v3/releases/upgrade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This may be a breaking change if you need to support older browser versions and
3939

4040
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.
4141

42-
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.
42+
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.
4343

4444
To transpile Lit 3 in Webpack 4, install the following required babel packages:
4545

0 commit comments

Comments
 (0)