Commit 5b1d0d3
build(deps-dev): bump esbuild from 0.18.20 to 0.21.3 (#271)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.18.20 to
0.21.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/evanw/esbuild/releases">esbuild's
releases</a>.</em></p>
<blockquote>
<h2>v0.21.3</h2>
<ul>
<li>
<p>Implement the decorator metadata proposal (<a
href="https://redirect.github.com/evanw/esbuild/issues/3760">#3760</a>)</p>
<p>This release implements the <a
href="https://github.com/tc39/proposal-decorator-metadata">decorator
metadata proposal</a>, which is a sub-proposal of the <a
href="https://github.com/tc39/proposal-decorators">decorators
proposal</a>. Microsoft shipped the decorators proposal in <a
href="https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#decorators">TypeScript
5.0</a> and the decorator metadata proposal in <a
href="https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/#decorator-metadata">TypeScript
5.2</a>, so it's important that esbuild also supports both of these
features. Here's a quick example:</p>
<pre lang="js"><code>// Shim the "Symbol.metadata" symbol
Symbol.metadata ??= Symbol('Symbol.metadata')
<p>const track = (_, context) => {
(context.metadata.names ||= []).push(context.name)
}</p>
<p>class Foo {
<a href="https://github.com/track"><code>@track</code></a> foo = 1
<a href="https://github.com/track"><code>@track</code></a> bar = 2
}</p>
<p>// Prints ["foo", "bar"]
console.log(Foo[Symbol.metadata].names)
</code></pre></p>
<p><strong>1 parent d703428 commit 5b1d0d3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments