Skip to content

Commit 2da6dd1

Browse files
authored
[docs] Fix compat-table link in publishing (#1276)
* Fix compat-table link * Remove bad link from known good urls
1 parent eecfce5 commit 2da6dd1

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

packages/lit-dev-content/site/docs/v2/tools/publishing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You should also create a README describing how to consume your component.
3131

3232
## Publishing modern JavaScript
3333

34-
We recommend publishing JavaScript modules in standard [ES2019](https://kangax.github.io/compat-table/es2016plus/) syntax, as this is supported on all evergreen browsers and results in the fastest and smallest JavaScript. Users of your package can always use a compiler to support older browsers, but they can't transform legacy JavaScript to modern syntax if you pre-compile your code before publishing.
34+
We recommend publishing JavaScript modules in standard [ES2019](https://compat-table.github.io/compat-table/es2016plus/) syntax, as this is supported on all evergreen browsers and results in the fastest and smallest JavaScript. Users of your package can always use a compiler to support older browsers, but they can't transform legacy JavaScript to modern syntax if you pre-compile your code before publishing.
3535

3636
However, it is important that if you are using newly proposed or non-standard JavaScript features such as TypeScript, decorators, and class fields, you _should_ compile those features to standard ES2019 supported natively in browsers before publishing to npm.
3737

packages/lit-dev-content/site/docs/v3/tools/publishing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You should also create a README describing how to consume your component.
3131

3232
## Publishing modern JavaScript
3333

34-
We recommend publishing JavaScript modules in standard [ES2021](https://kangax.github.io/compat-table/es2016plus/) syntax, as this is supported on all evergreen browsers and results in the fastest and smallest JavaScript. Users of your package can always use a compiler to support older browsers, but they can't transform legacy JavaScript to modern syntax if you pre-compile your code before publishing.
34+
We recommend publishing JavaScript modules in standard [ES2021](https://compat-table.github.io/compat-table/es2016plus/) syntax, as this is supported on all evergreen browsers and results in the fastest and smallest JavaScript. Users of your package can always use a compiler to support older browsers, but they can't transform legacy JavaScript to modern syntax if you pre-compile your code before publishing.
3535

3636
However, it is important that if you are using newly proposed or non-standard JavaScript features such as TypeScript, decorators, and class fields, you _should_ compile those features to standard ES2021 supported natively in browsers before publishing to npm.
3737

packages/lit-dev-tests/known-good-urls.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ https://jasmine.github.io/
118118
https://modern-web.dev/guides/test-runner/getting-started
119119
https://www.npmjs.com/
120120
https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
121-
https://kangax.github.io/compat-table/es2016plus/
122121
https://github.com/WICG/webcomponents/blob/gh-pages/proposals/Scoped-Custom-Element-Registries.md
123122
https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry
124123
https://github.com/webcomponents/gold-standard/wiki

0 commit comments

Comments
 (0)