Lauren Tan
61aa159086
[compiler] Fix up prettier
...
Our prettier setup is all messed up after the merge, so this PR should
fix things
ghstack-source-id: f825460ea6
Pull Request resolved: https://github.com/facebook/react/pull/29213
2024-05-29 11:46:27 +09:00
Lauren Tan
0a0a5c02f1
[compiler:playground] Wait for build before running playground
...
Explicitly waits for the build to finish since the playground requires
them to run
ghstack-source-id: 0bd7d5272d
Pull Request resolved: https://github.com/facebook/react/pull/29180
2024-05-21 15:44:04 -04:00
dependabot[bot]
c325aec1ee
Bump word-wrap from 1.2.3 to 1.2.5 in /compiler ( #29064 )
...
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap ) from 1.2.3
to 1.2.5.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/jonschlinkert/word-wrap/releases ">word-wrap's
releases</a>.</em></p>
<blockquote>
<h2>1.2.5</h2>
<p><strong>Changes</strong>:</p>
<p>Reverts default value for <code>options.indent</code> to two spaces
<code>' '</code>.</p>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jonschlinkert/word-wrap/compare/1.2.4...1.2.5 ">https://github.com/jonschlinkert/word-wrap/compare/1.2.4...1.2.5 </a></p>
<h2>1.2.4</h2>
<h2>What's Changed</h2>
<ul>
<li>Remove default indent by <a
href="https://github.com/mohd-akram "><code>@mohd-akram</code></a> in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/24 ">jonschlinkert/word-wrap#24</a></li>
<li>🔒 fix: CVE 2023 26115 (2) by <a
href="https://github.com/OlafConijn "><code>@OlafConijn</code></a> in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/41 ">jonschlinkert/word-wrap#41</a></li>
<li>🔒 fix: CVE-2023-26115 by <a
href="https://github.com/aashutoshrathi "><code>@aashutoshrathi</code></a>
in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/33 ">jonschlinkert/word-wrap#33</a></li>
<li>chore: publish workflow by <a
href="https://github.com/OlafConijn "><code>@OlafConijn</code></a> in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/42 ">jonschlinkert/word-wrap#42</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/mohd-akram "><code>@mohd-akram</code></a> made
their first contribution in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/24 ">jonschlinkert/word-wrap#24</a></li>
<li><a
href="https://github.com/OlafConijn "><code>@OlafConijn</code></a> made
their first contribution in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/41 ">jonschlinkert/word-wrap#41</a></li>
<li><a
href="https://github.com/aashutoshrathi "><code>@aashutoshrathi</code></a>
made their first contribution in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/33 ">jonschlinkert/word-wrap#33</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4 ">https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4 </a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/jonschlinkert/word-wrap/commit/207044ebda1dd3809d15b6000a48409266536771 "><code>207044e</code></a>
1.2.5</li>
<li><a
href="https://github.com/jonschlinkert/word-wrap/commit/98943154855b0dd79b707462b9202614990c7f61 "><code>9894315</code></a>
revert default indent</li>
<li><a
href="https://github.com/jonschlinkert/word-wrap/commit/f64b188c7261d26b99e1e2075d6b12f21798e83a "><code>f64b188</code></a>
run verb to generate README</li>
<li><a
href="https://github.com/jonschlinkert/word-wrap/commit/03ea08256ba0c8e8b02b1b304f0f5bd2b1863207 "><code>03ea082</code></a>
Merge pull request <a
href="https://redirect.github.com/jonschlinkert/word-wrap/issues/42 ">#42</a>
from jonschlinkert/chore/publish-workflow</li>
<li><a
href="https://github.com/jonschlinkert/word-wrap/commit/420dce9a2412b21881202b73a3c34f0edc53cb2e "><code>420dce9</code></a>
Merge pull request <a
href="https://redirect.github.com/jonschlinkert/word-wrap/issues/41 ">#41</a>
from jonschlinkert/fix/CVE-2023-26115-2</li>
<li><a
href="https://github.com/jonschlinkert/word-wrap/commit/bfa694edf55bb84ff84512f13da6d68bf7593f06 "><code>bfa694e</code></a>
Update .github/workflows/publish.yml</li>
<li><a
href="https://github.com/jonschlinkert/word-wrap/commit/ace0b3c78f81aaf43040bab3bc91d3c5546d3fd2 "><code>ace0b3c</code></a>
chore: bump version to 1.2.4</li>
<li><a
href="https://github.com/jonschlinkert/word-wrap/commit/6fd727594676f3e1b196b08a320908bec2f4ca02 "><code>6fd7275</code></a>
chore: add publish workflow</li>
<li><a
href="https://github.com/jonschlinkert/word-wrap/commit/30d6daf60fce429f5f559252fa86ee78200652c4 "><code>30d6daf</code></a>
chore: fix test</li>
<li><a
href="https://github.com/jonschlinkert/word-wrap/commit/655929cabea6299dddf3b4a21fc3713fca701b48 "><code>655929c</code></a>
chore: remove package-lock</li>
<li>Additional commits viewable in <a
href="https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5 ">compare
view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/facebook/react/network/alerts ).
</details>
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 12:03:55 +01:00
dependabot[bot]
ba51ebe03a
Bump tough-cookie from 4.1.2 to 4.1.4 in /compiler ( #29065 )
...
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie ) from
4.1.2 to 4.1.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/salesforce/tough-cookie/releases ">tough-cookie's
releases</a>.</em></p>
<blockquote>
<h2>v4.1.4</h2>
<p><a
href="https://www.npmjs.com/package/tough-cookie/v/4.1.4 ">https://www.npmjs.com/package/tough-cookie/v/4.1.4 </a></p>
<h2>What's Changed</h2>
<ul>
<li>Add local alias for <code>toString</code> by <a
href="https://github.com/corvidism "><code>@corvidism</code></a> in <a
href="https://redirect.github.com/salesforce/tough-cookie/pull/409 ">salesforce/tough-cookie#409</a></li>
<li>Fix incorrect string validation for URL by <a
href="https://github.com/coditva "><code>@coditva</code></a> in <a
href="https://redirect.github.com/salesforce/tough-cookie/pull/261 ">salesforce/tough-cookie#261</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/corvidism "><code>@corvidism</code></a>
made their first contribution in <a
href="https://redirect.github.com/salesforce/tough-cookie/pull/409 ">salesforce/tough-cookie#409</a></li>
<li><a href="https://github.com/coditva "><code>@coditva</code></a> made
their first contribution in <a
href="https://redirect.github.com/salesforce/tough-cookie/pull/261 ">salesforce/tough-cookie#261</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/salesforce/tough-cookie/compare/v4.1.3...v4.1.4 ">https://github.com/salesforce/tough-cookie/compare/v4.1.3...v4.1.4 </a></p>
<h2>4.1.3</h2>
<p>Security fix for Prototype Pollution discovery in <a
href="https://redirect.github.com/salesforce/tough-cookie/issues/282 ">#282</a>.
This is a minor release, although output from the <code>inspect</code>
utility is affected by this change, we felt this change was important
enough to be pushed into the next patch.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/salesforce/tough-cookie/commit/cacbc37936bd4824693d885e1e65dca626ed3c8c "><code>cacbc37</code></a>
Bump version to 4.1.4</li>
<li><a
href="https://github.com/salesforce/tough-cookie/commit/a48fb3a6ba2bbce41595a20e1db56543d974057b "><code>a48fb3a</code></a>
Add tests for url validation</li>
<li><a
href="https://github.com/salesforce/tough-cookie/commit/50e69bf9372c13a1e573b77c179a879198a240e3 "><code>50e69bf</code></a>
Merge pull request <a
href="https://redirect.github.com/salesforce/tough-cookie/issues/261 ">#261</a>
from postmanlabs/fix/url-string-validation</li>
<li><a
href="https://github.com/salesforce/tough-cookie/commit/1253d58825378c2327e3a71e2228b65812d1cf7c "><code>1253d58</code></a>
Merge pull request <a
href="https://redirect.github.com/salesforce/tough-cookie/issues/409 ">#409</a>
from corvidism/validators-to-string</li>
<li><a
href="https://github.com/salesforce/tough-cookie/commit/238367e2f1d8a2c72cc25cc80a6eeecb612983d6 "><code>238367e</code></a>
Add local alias for <code>toString</code></li>
<li><a
href="https://github.com/salesforce/tough-cookie/commit/4ff4d29f6cefd279a412b8d62a21142ebd410b36 "><code>4ff4d29</code></a>
4.1.3 release preparation, update the package and lib/version to 4.1.3.
(<a
href="https://redirect.github.com/salesforce/tough-cookie/issues/284 ">#284</a>)</li>
<li><a
href="https://github.com/salesforce/tough-cookie/commit/12d474791bb856004e858fdb1c47b7608d09cf6e "><code>12d4747</code></a>
Prevent prototype pollution in cookie memstore (<a
href="https://redirect.github.com/salesforce/tough-cookie/issues/283 ">#283</a>)</li>
<li><a
href="https://github.com/salesforce/tough-cookie/commit/f06b72d1d447f33dfa6222c0a3c0c5e063558248 "><code>f06b72d</code></a>
Fix documentation for store.findCookies, missing allowSpecialUseDomain
proper...</li>
<li><a
href="https://github.com/salesforce/tough-cookie/commit/cf6debd15f16df43030f36719251fcce0ed27dfc "><code>cf6debd</code></a>
Fix incorrect string validation for URL</li>
<li>See full diff in <a
href="https://github.com/salesforce/tough-cookie/compare/v4.1.2...v4.1.4 ">compare
view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a
href="https://www.npmjs.com/~ccasey ">ccasey</a>, a new releaser for
tough-cookie since your current version.</p>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/facebook/react/network/alerts ).
</details>
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 12:03:29 +01:00
dependabot[bot]
8287cb9290
Bump postcss from 8.4.24 to 8.4.31 in /compiler ( #29063 )
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.4.24 to
8.4.31.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/postcss/postcss/releases ">postcss's
releases</a>.</em></p>
<blockquote>
<h2>8.4.31</h2>
<ul>
<li>Fixed <code>\r</code> parsing to fix CVE-2023-44270.</li>
</ul>
<h2>8.4.30</h2>
<ul>
<li>Improved source map performance (by <a
href="https://github.com/romainmenke "><code>@romainmenke</code></a>).</li>
</ul>
<h2>8.4.29</h2>
<ul>
<li>Fixed <code>Node#source.offset</code> (by <a
href="https://github.com/idoros "><code>@idoros</code></a>).</li>
<li>Fixed docs (by <a
href="https://github.com/coliff "><code>@coliff</code></a>).</li>
</ul>
<h2>8.4.28</h2>
<ul>
<li>Fixed <code>Root.source.end</code> for better source map (by <a
href="https://github.com/romainmenke "><code>@romainmenke</code></a>).</li>
<li>Fixed <code>Result.root</code> types when <code>process()</code> has
no parser.</li>
</ul>
<h2>8.4.27</h2>
<ul>
<li>Fixed <code>Container</code> clone methods types.</li>
</ul>
<h2>8.4.26</h2>
<ul>
<li>Fixed clone methods types.</li>
</ul>
<h2>8.4.25</h2>
<ul>
<li>Improve stringify performance (by <a
href="https://github.com/romainmenke "><code>@romainmenke</code></a>).</li>
<li>Fixed docs (by <a
href="https://github.com/vikaskaliramna07 "><code>@vikaskaliramna07</code></a>).</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/postcss/postcss/blob/main/CHANGELOG.md ">postcss's
changelog</a>.</em></p>
<blockquote>
<h2>8.4.31</h2>
<ul>
<li>Fixed <code>\r</code> parsing to fix CVE-2023-44270.</li>
</ul>
<h2>8.4.30</h2>
<ul>
<li>Improved source map performance (by Romain Menke).</li>
</ul>
<h2>8.4.29</h2>
<ul>
<li>Fixed <code>Node#source.offset</code> (by Ido Rosenthal).</li>
<li>Fixed docs (by Christian Oliff).</li>
</ul>
<h2>8.4.28</h2>
<ul>
<li>Fixed <code>Root.source.end</code> for better source map (by Romain
Menke).</li>
<li>Fixed <code>Result.root</code> types when <code>process()</code> has
no parser.</li>
</ul>
<h2>8.4.27</h2>
<ul>
<li>Fixed <code>Container</code> clone methods types.</li>
</ul>
<h2>8.4.26</h2>
<ul>
<li>Fixed clone methods types.</li>
</ul>
<h2>8.4.25</h2>
<ul>
<li>Improve stringify performance (by Romain Menke).</li>
<li>Fixed docs (by <a
href="https://github.com/vikaskaliramna07 "><code>@vikaskaliramna07</code></a>).</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/postcss/postcss/commit/90208de8805dd762596c0028b8637ffbed23e371 "><code>90208de</code></a>
Release 8.4.31 version</li>
<li><a
href="https://github.com/postcss/postcss/commit/58cc860b4c1707510c9cd1bc1fa30b423a9ad6c5 "><code>58cc860</code></a>
Fix carrier return parsing</li>
<li><a
href="https://github.com/postcss/postcss/commit/4fff8e4cdc237619df1d73a444c0a8329701c1e2 "><code>4fff8e4</code></a>
Improve pnpm test output</li>
<li><a
href="https://github.com/postcss/postcss/commit/cd43ed123274a92ebc13a1e8cccf1d65b8198f84 "><code>cd43ed1</code></a>
Update dependencies</li>
<li><a
href="https://github.com/postcss/postcss/commit/caa916bdcbf66c51321574e2dde112ab13e8b306 "><code>caa916b</code></a>
Update dependencies</li>
<li><a
href="https://github.com/postcss/postcss/commit/8972f76923e921a3c9655822382039b31b1c8e1a "><code>8972f76</code></a>
Typo</li>
<li><a
href="https://github.com/postcss/postcss/commit/11a5286f781d2a637f2c545c5e9cd661055acaab "><code>11a5286</code></a>
Typo</li>
<li><a
href="https://github.com/postcss/postcss/commit/45c55017776fc61f7815d1ea8e92d5291ca5d6c8 "><code>45c5501</code></a>
Release 8.4.30 version</li>
<li><a
href="https://github.com/postcss/postcss/commit/bc3c341f589f9c15f1b56838a33d908374e537e0 "><code>bc3c341</code></a>
Update linter</li>
<li><a
href="https://github.com/postcss/postcss/commit/b2be58a2eb788d12474ee1335f8ecdb9fa6225aa "><code>b2be58a</code></a>
Merge pull request <a
href="https://redirect.github.com/postcss/postcss/issues/1881 ">#1881</a>
from romainmenke/improve-sourcemap-performance--phil...</li>
<li>Additional commits viewable in <a
href="https://github.com/postcss/postcss/compare/8.4.24...8.4.31 ">compare
view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/facebook/react/network/alerts ).
</details>
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 11:47:51 +01:00
Lauren Tan
b195a947de
[compiler:publish] Prompt for OTP
...
Makes running the script a little more ergonomic by prompting for OTP
upfront.
ghstack-source-id: e9967bfde1
Pull Request resolved: https://github.com/facebook/react/pull/29149
2024-05-17 15:07:04 -07:00
Abishek Ilango
541e3c516d
[compiler:playground] Resizable tabs ( #29133 )
...
## Summary
Every tab wraps the text around but there is no way to resize it. It was
also hard to use the source map tab. It doesn't occupy the full height
nor is the tab resizable. So I made all the tabs resizable.
> Also,
> * make the source map tab occupy full height
> * make it a teeny tiny bit easier to work with the compiler playground
(especially source map)
## How did you test this change?
https://github.com/facebook/react/assets/91976421/cdec30e8-cadb-4958-8786-31c54ea83bd6
Signed-off-by: abizek <abishekilango@protonmail.com >
2024-05-17 15:31:24 -04:00
Lauren Tan
3f1436cca1
[compiler:playground] Fix broken builds
...
Now that the compiler is public, the `*` version was grabbing the latest
version of the compiler off of npm and was resolving to my very first
push to npm (an empty package containing only a single package.json).
This was breaking the playground as it would attempt to load the
compiler but then crash the babel pipeline due to the node module not
being found.
ghstack-source-id: 695fd9caac
Pull Request resolved: https://github.com/facebook/react/pull/29122
2024-05-16 23:25:57 -07:00
Joseph Savona
3adca7a477
compiler: fix jsx text attributes with double quotes ( #29079 )
...
Fixes #29069 by detecting the presence of double-quotes in JSX attribute
strings and falling back to using an expression container.
2024-05-15 14:40:33 -07:00
Lauren Tan
6948639df6
[publish] Add script to publish packages
...
Adds a script to publish babel-plugin-react-compiler,
eslint-plugin-react-compiler, and react-compiler-healthcheck to npm.
Instructions are in a comment in scripts/publish.js, please read
carefully before using this script!
Test plan:
```
$ yarn npm:publish
yarn run v1.22.10
$ node scripts/publish
ℹ Preparing to publish (dry run) [debug=false]
ℹ Building packages
✔ Successfully built babel-plugin-react-compiler
✔ Successfully built eslint-plugin-react-compiler
✔ Successfully built react-compiler-healthcheck
ℹ Dry run: Report tarball contents
========== babel-plugin-react-compiler ==========
⠴ Running npm pack --dry-run
npm WARN config init.author.name Use `--init-author-name` instead.
npm WARN config init.author.email Use `--init-author-email` instead.
⠦ Running npm pack --dry-run
npm notice
npm notice 📦 babel-plugin-react-compiler@0.0.1
npm notice === Tarball Contents ===
npm notice 11B dist/__tests__/DisjointSet-test.d.ts
npm notice 11B dist/__tests__/envConfig-test.d.ts
npm notice 11B dist/__tests__/Logger-test.d.ts
npm notice 11B dist/__tests__/parseConfigPragma-test.d.ts
npm notice 11B dist/__tests__/Result-test.d.ts
npm notice 145B dist/__tests__/test-utils/validateNoUseBeforeDefine.d.ts
npm notice 144B dist/Babel/BabelPlugin.d.ts
npm notice 350B dist/Babel/RunReactCompilerBabelPlugin.d.ts
npm notice 2.4kB dist/CompilerError.d.ts
npm notice 455B dist/Entrypoint/Gating.d.ts
npm notice 376B dist/Entrypoint/Imports.d.ts
npm notice 166B dist/Entrypoint/index.d.ts
npm notice 1.8kB dist/Entrypoint/Options.d.ts
npm notice 1.3kB dist/Entrypoint/Pipeline.d.ts
npm notice 819B dist/Entrypoint/Program.d.ts
npm notice 295B dist/Entrypoint/Reanimated.d.ts
npm notice 753B dist/Entrypoint/Suppression.d.ts
npm notice 113B dist/HIR/AssertConsistentIdentifiers.d.ts
npm notice 115B dist/HIR/AssertTerminalSuccessorsExist.d.ts
npm notice 529B dist/HIR/AssertValidBlockNesting.d.ts
npm notice 110B dist/HIR/AssertValidMutableRanges.d.ts
npm notice 585B dist/HIR/BuildHIR.d.ts
npm notice 116B dist/HIR/BuildReactiveScopeTerminalsHIR.d.ts
npm notice 125B dist/HIR/ComputeUnconditionalBlocks.d.ts
npm notice 602B dist/HIR/Dominator.d.ts
npm notice 12.7kB dist/HIR/Environment.d.ts
npm notice 184B dist/HIR/FindContextIdentifiers.d.ts
npm notice 401B dist/HIR/Globals.d.ts
npm notice 22.2kB dist/HIR/HIR.d.ts
npm notice 2.8kB dist/HIR/HIRBuilder.d.ts
npm notice 1.1kB dist/HIR/index.d.ts
npm notice 108B dist/HIR/MergeConsecutiveBlocks.d.ts
npm notice 115B dist/HIR/MergeOverlappingReactiveScopesHIR.d.ts
npm notice 2.2kB dist/HIR/ObjectShape.d.ts
npm notice 1.4kB dist/HIR/PrintHIR.d.ts
npm notice 106B dist/HIR/PruneUnusedLabelsHIR.d.ts
npm notice 1.1kB dist/HIR/Types.d.ts
npm notice 1.9kB dist/HIR/visitors.d.ts
npm notice 776B dist/index.d.ts
npm notice 5.4MB dist/index.js
npm notice 429B dist/Inference/AnalyseFunctions.d.ts
npm notice 324B dist/Inference/DropManualMemoization.d.ts
npm notice 436B dist/Inference/index.d.ts
npm notice 224B dist/Inference/InferAlias.d.ts
npm notice 204B dist/Inference/InferAliasForPhis.d.ts
npm notice 206B dist/Inference/InferAliasForStores.d.ts
npm notice 115B dist/Inference/InferMutableContextVariables.d.ts
npm notice 151B dist/Inference/InferMutableLifetimes.d.ts
npm notice 109B dist/Inference/InferMutableRanges.d.ts
npm notice 212B dist/Inference/InferMutableRangesForAlias.d.ts
npm notice 106B dist/Inference/InferReactivePlaces.d.ts
npm notice 368B dist/Inference/InferReferenceEffects.d.ts
npm notice 201B dist/Inference/InferTryCatchAliases.d.ts
npm notice 130B dist/Inference/InlineImmediatelyInvokedFunctionExpressions.d.ts
npm notice 106B dist/Optimization/ConstantPropagation.d.ts
npm notice 258B dist/Optimization/DeadCodeElimination.d.ts
npm notice 177B dist/Optimization/index.d.ts
npm notice 103B dist/Optimization/PruneMaybeThrows.d.ts
npm notice 108B dist/ReactiveScopes/AlignMethodCallScopes.d.ts
npm notice 110B dist/ReactiveScopes/AlignObjectMethodScopes.d.ts
npm notice 133B dist/ReactiveScopes/AlignReactiveScopesToBlockScopes.d.ts
npm notice 126B dist/ReactiveScopes/AlignReactiveScopesToBlockScopesHIR.d.ts
npm notice 132B dist/ReactiveScopes/AssertScopeInstructionsWithinScope.d.ts
npm notice 125B dist/ReactiveScopes/AssertWellFormedBreakTargets.d.ts
npm notice 363B dist/ReactiveScopes/BuildReactiveBlocks.d.ts
npm notice 142B dist/ReactiveScopes/BuildReactiveFunction.d.ts
npm notice 759B dist/ReactiveScopes/CodegenReactiveFunction.d.ts
npm notice 154B dist/ReactiveScopes/CollectReactiveIdentifiers.d.ts
npm notice 128B dist/ReactiveScopes/CollectReferencedGlobals.d.ts
npm notice 698B dist/ReactiveScopes/DeriveMinimalDependencies.d.ts
npm notice 138B dist/ReactiveScopes/ExtractScopeDeclarationsFromDestructuring.d.ts
npm notice 121B dist/ReactiveScopes/FlattenReactiveLoops.d.ts
npm notice 124B dist/ReactiveScopes/FlattenScopesWithHooksOrUse.d.ts
npm notice 2.1kB dist/ReactiveScopes/index.d.ts
npm notice 370B dist/ReactiveScopes/InferReactiveScopeVariables.d.ts
npm notice 217B dist/ReactiveScopes/MemoizeFbtOperandsInSameScope.d.ts
npm notice 127B dist/ReactiveScopes/MergeOverlappingReactiveScopes.d.ts
npm notice 138B dist/ReactiveScopes/MergeReactiveScopesThatInvalidateTogether.d.ts
npm notice 1.0kB dist/ReactiveScopes/PrintReactiveFunction.d.ts
npm notice 123B dist/ReactiveScopes/PromoteUsedTemporaries.d.ts
npm notice 118B dist/ReactiveScopes/PropagateEarlyReturns.d.ts
npm notice 127B dist/ReactiveScopes/PropagateScopeDependencies.d.ts
npm notice 123B dist/ReactiveScopes/PruneAllReactiveScopes.d.ts
npm notice 126B dist/ReactiveScopes/PruneAlwaysInvalidatingScopes.d.ts
npm notice 117B dist/ReactiveScopes/PruneHoistedContexts.d.ts
npm notice 227B dist/ReactiveScopes/PruneNonEscapingScopes.d.ts
npm notice 125B dist/ReactiveScopes/PruneNonReactiveDependencies.d.ts
npm notice 122B dist/ReactiveScopes/PruneTemporaryLValues.d.ts
npm notice 118B dist/ReactiveScopes/PruneUnusedLabels.d.ts
npm notice 118B dist/ReactiveScopes/PruneUnusedScopes.d.ts
npm notice 123B dist/ReactiveScopes/RenameVariables.d.ts
npm notice 114B dist/ReactiveScopes/StabilizeBlockIds.d.ts
npm notice 3.1kB dist/ReactiveScopes/visitors.d.ts
npm notice 170B dist/SSA/EliminateRedundantPhi.d.ts
npm notice 101B dist/SSA/EnterSSA.d.ts
npm notice 154B dist/SSA/index.d.ts
npm notice 99B dist/SSA/LeaveSSA.d.ts
npm notice 63.5kB dist/tsconfig.tsbuildinfo
npm notice 43B dist/TypeInference/index.d.ts
npm notice 103B dist/TypeInference/InferTypes.d.ts
npm notice 352B dist/Utils/ComponentDeclaration.d.ts
npm notice 256B dist/Utils/DisjointSet.d.ts
npm notice 322B dist/Utils/HookDeclaration.d.ts
npm notice 613B dist/Utils/logger.d.ts
npm notice 2.3kB dist/Utils/Result.d.ts
npm notice 119B dist/Utils/RuntimeDiagnosticConstants.d.ts
npm notice 1.1kB dist/Utils/Stack.d.ts
npm notice 149B dist/Utils/todo.d.ts
npm notice 782B dist/Utils/utils.d.ts
npm notice 603B dist/Validation/index.d.ts
npm notice 117B dist/Validation/ValidateContextVariableLValues.d.ts
npm notice 109B dist/Validation/ValidateHooksUsage.d.ts
npm notice 214B dist/Validation/ValidateMemoizedEffectDependencies.d.ts
npm notice 113B dist/Validation/ValidateNoCapitalizedCalls.d.ts
npm notice 114B dist/Validation/ValidateNoRefAccesInRender.d.ts
npm notice 113B dist/Validation/ValidateNoSetStateInRender.d.ts
npm notice 131B dist/Validation/ValidatePreservedManualMemoization.d.ts
npm notice 102B dist/Validation/ValidateUseMemo.d.ts
npm notice 2.3kB package.json
npm notice === Tarball Details ===
npm notice name: babel-plugin-react-compiler
npm notice version: 0.0.1
npm notice filename: babel-plugin-react-compiler-0.0.1.tgz
npm notice package size: 1.1 MB
npm notice unpacked size: 5.5 MB
npm notice shasum: 9a0fb71bdc904d6ab92432a506b0e037f10dd7ce
npm notice integrity: sha512-hXtObyIEP4MbO[...]jstRbpztyLf4g==
npm notice total files: 119
npm notice
========== eslint-plugin-react-compiler ==========
⠴ Running npm pack --dry-run
npm WARN config init.author.name Use `--init-author-name` instead.
npm WARN config init.author.email Use `--init-author-email` instead.
⠋ Running npm pack --dry-run
npm notice
npm notice 📦 eslint-plugin-react-compiler@0.0.0
npm notice === Tarball Contents ===
npm notice 827B README.md
npm notice 2.1MB dist/index.js
npm notice 968B package.json
npm notice === Tarball Details ===
npm notice name: eslint-plugin-react-compiler
npm notice version: 0.0.0
npm notice filename: eslint-plugin-react-compiler-0.0.0.tgz
npm notice package size: 300.5 kB
npm notice unpacked size: 2.1 MB
npm notice shasum: f24dab544b03d36d9bb676a16256f114bd5e0ed6
npm notice integrity: sha512-8PcKZXZ+RVBDP[...]D7jFmkvHJoBeA==
npm notice total files: 3
npm notice
========== react-compiler-healthcheck ==========
⠼ Running npm pack --dry-run
npm WARN config init.author.name Use `--init-author-name` instead.
npm WARN config init.author.email Use `--init-author-email` instead.
⠏ Running npm pack --dry-run
npm notice
npm notice 📦 react-compiler-healthcheck@0.0.0
npm notice === Tarball Contents ===
npm notice 2.1MB dist/index.js
npm notice 677B package.json
npm notice 1.8kB rollup.config.js
npm notice 1.1kB src/checks/libraryCompat.ts
npm notice 3.2kB src/checks/reactCompiler.ts
npm notice 759B src/checks/strictMode.ts
npm notice 67B src/config.ts
npm notice 1.5kB src/index.ts
npm notice 602B tsconfig.json
npm notice === Tarball Details ===
npm notice name: react-compiler-healthcheck
npm notice version: 0.0.0
npm notice filename: react-compiler-healthcheck-0.0.0.tgz
npm notice package size: 290.4 kB
npm notice unpacked size: 2.1 MB
npm notice shasum: 55c0eb57aebc7305270a29e78ebf6c056044bae0
npm notice integrity: sha512-nPVhGyh8i9PoO[...]v52c3U0tKGpzA==
npm notice total files: 9
npm notice
✔ Please confirm contents of packages before publishing. You can run this command again with --for-real to publish to npm
✨ Done in 61.19s.
```
```
$ yarn npm:publish --debug --for-real
yarn run v1.22.10
$ node scripts/publish --debug --for-real
ℹ Preparing to publish (for real) [debug=true]
ℹ Building packages
✔ Successfully built babel-plugin-react-compiler
✔ Successfully built eslint-plugin-react-compiler
✔ Successfully built react-compiler-healthcheck
✔ Bumped babel-plugin-react-compiler to 0.0.0-experimental-2769f7a-20240513
✔ Bumped eslint-plugin-react-compiler to 0.0.0-experimental-e04a001-20240513
✔ Bumped react-compiler-healthcheck to 0.0.0-experimental-410375f-20240513
========== babel-plugin-react-compiler ==========
⠋ Publishing babel-plugin-react-compiler to npm
Command that would have run: npm publish --dry-run
/Users/lauren/code/react-forget/compiler/scripts/publish.js:188
throw new Error(
^
Error: This error is intentional, please double check scripts/publish.js and remove this error prior to publishing
at main (/Users/lauren/code/react-forget/compiler/scripts/publish.js:188:13)
Node.js v20.11.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```
On the day of launch, remove the hardcoded error, then run `yarn
npm:publish --debug --for-real` first as a sanity check. Confirm the
contents are correct.
Then when you are certain, run `yarn npm:publish --for-real`, and push
the commited version bumps to GitHub so the hashes that the packages
originate from are public.
ghstack-source-id: 403bc22d4b340056fd112fcfc38580f28ed6c986
Pull Request resolved: https://github.com/facebook/react-forget/pull/2966
2024-05-14 11:02:29 -04:00
Jan Kassens
e63d3d1491
Upgrade to React 19 beta ( #2938 )
...
- Updated all directly defined dependencies to the latest React 19 Beta
- `package.json`: used `resolutions` to force React 19 for `react-is` transitive dependency
- `package.json`: postinstall script to patch fbt for the React 19 element Symbol
- Match on the message in Snap to exclude a React 19 warning that `act` should be imported from `react` instead (from inside `@testing-library/react`)
- Some updated snapshots, I think due to now recovering behavior of `useMemoCache`, please review.
In a next step, we can do the following. I excluded it since it from here as it made the PR unreviewable on GitHub.
- Snapshots now use `react/compiler-runtime` as in prod, so the different default in Snap is no longer needed.
2024-05-06 19:48:39 -04:00
Sathya Gunsasekaran
c88d356603
[healthcheck] Add status message
...
Show compiling status message and not just block
UI.
ghstack-source-id: 67761c5d32216e105c4aa6404dfa07d76ae22583
Pull Request resolved: https://github.com/facebook/react-forget/pull/2921
2024-05-01 13:35:03 +01:00
Sathya Gunsasekaran
9e15ade177
[healthcheck] Read files from globbed path
...
ghstack-source-id: a79336c2b1c85ae4d5b941ffbeffb3df10816448
Pull Request resolved: https://github.com/facebook/react-forget/pull/2887
2024-04-23 12:28:41 +01:00
Sathya Gunsasekaran
a6cc5bc874
[healthcheck] Read glob of src path
...
Use yargs to parse input of glob expression
matching the path of src files to compile.
ghstack-source-id: 6a35e958428cd08ef5c96e0014e072d3faf04064
Pull Request resolved: https://github.com/facebook/react-forget/pull/2886
2024-04-23 12:28:41 +01:00
Lauren Tan
2f66d37cfd
Use lz-string for playground state uri param
...
This compresses more efficiently than the base64 encoding we were
previously using, which makes sharing URLs a little less unwieldy and
takes up less space in local storage. Using
some real code as an example, lz-string compresses to 8040 bytes,
whereas the original base64 encoding we were using compresses to 16504
bytes
ghstack-source-id: b8f1089889b94b07d6f419606b798ffddb8863ba
Pull Request resolved: https://github.com/facebook/react-forget/pull/2834
2024-04-10 17:46:33 -04:00
Jan Kassens
76bb13cd26
First attempt at making the linter work with advanced TypeScript syntax
...
First attempt at making the linter work with advanced TypeScript syntax
Falls back to the babel parser for some advanced syntax like string template
syntax.
This is pretty hacky as it doesn't take in any parsing options that are
configured for the outer ESLint parser, not sure how that could be handled.
2024-04-04 18:31:31 -04:00
Lauren Tan
07a3404c5f
Add basic playwright e2e test to playground
2024-04-03 18:12:29 -04:00
Lauren Tan
5485ed0855
Standardize on banner2 plugin
2024-04-02 12:13:41 -04:00
Lauren Tan
f01f74d9e1
Also build react-forget-runtime with rollup
...
This adds rollup to the runtime and adds a new plugin to add the license banner
+ inject the `"use no memo"` directive. We need to inject it there as rollup
currently strips out unknown directives during bundling.
2024-04-02 12:13:40 -04:00
Lauren Tan
b4eeae6f5d
Share rollup packages across workspace
2024-04-02 12:13:39 -04:00
Lauren Tan
91826d4924
Configure rollup to strip comments and whitespace
...
For now this configures rollup to strip out comments in DEV builds and
whitespace. Unfortunately there's no easy way to do this in just terser alone or
other minifiers/manglers, so I had to add prettier as well to re-format the
minified code. This does make the build a little bit slower:
``` before: yarn build 118.96s user 12.38s system 185% cpu 1:10.81 total after:
yarn build 121.55s user 12.90s system 183% cpu 1:13.17 total ```
Eventually I would like to have a similar setup to React's rollup config where
we can have DEV and prod builds. After the repo merge we could probably share or
reuse bits of React's rollup config.
2024-04-02 12:13:38 -04:00
Lauren Tan
4e6aa42773
Upgrade to typescript 5.4.3
...
This PR makes all packages share the same typescript version and updates us to
latest versions of typescript, ts-node, typescript-eslint/eslint-plugin and
typescript-eslint/parser.
I also noticed that the tsconfig we were extending (node18-strictest) was
deprecated, so I switched us over to one that's more up to date.
Also had to make a couple of small changes to the playground so that continues
to build correctly.
2024-04-02 10:32:23 -04:00
Lauren Tan
e6ce5e4922
[eslint] Update devDep to match types
2024-03-25 15:00:34 -04:00
Lauren Tan
15abd38911
Cleanup unused eslint-browser and js-fuzzer packages
...
These were never used, so let's clean them up
2024-03-25 15:00:31 -04:00
Sathya Gunasekaran
70302048a0
Update yarn.lock
2024-03-25 16:41:13 +00:00
Lauren Tan
1f45b13fda
Update yarn.lock
2024-03-22 18:59:44 -04:00
Mofei Zhang
e09c631aff
[be][snap] Make testfilter file recognize glob patterns, remove @skip
2024-03-11 13:55:24 -04:00
Mofei Zhang
9d25ced018
[instrument] Optional globalGating means no global gating
2024-02-29 10:04:37 -08:00
Mofei Zhang
915a0b8389
[be] Consolidate sprout -> snap
...
---
No changes to snap or sprout's functionality.
Tweaks to consolidate sprout into snap while keeping its simple interface and
most developer patterns.
- to keep `filter` mode fast, we do not run sprout in filter mode
- sprout is run in non-filter mode for both test and update
~~Small qol improvement: `--watch` will start you in `filter` mode~~
### Cost of this change
`performance.now()` is quite noisy due to background processes and ThreadPool
logic (especially with asymmetric task distribution), so I used
`process.cpuUsage` which reports time spent in user-space. This was much less
noisy (1-4% standard dev / mean)
Running all tests becomes slower by ~50%. Initial runs are slower because they
load in Forget's `require` chains.
- 23.9s previous initial run
- 34.6s current initial run
- 11.5s previous subsequent runs
- 15.4s current subsequent runs
Running filtered tests remains very fast (~100ms on the average case)
---
Additional modes or commands could be added as needed (e.g. run tests in filter
mode, with sprout output)
2024-02-27 06:54:30 -08:00
Joe Savona
ca3d16c5ef
Enable hook syntax support
...
Updates the compiler to understand Flow hook syntax. Like component syntax, in
infer mode hooks are compiled by default unless opted out.
Looking ahead, i can imagine splitting up our compilation modes as follows:
* Annotations: opt-in explicitly
* Declarations: annotations + component/hook declarations
* Infer: annotations, component/hook declarations, + component/hook-like
functions
This also suggest an alternative annotation strategy: "use react" (or "use
component" / "use hook") as a general way to tell the compiler that a function
is intended for React. Then opting out of memoization could do "use
react(nomemo)".
2024-02-17 17:31:47 -08:00
Jan Kassens
ac89712750
Add code frame to snap errors
...
Add code frame to snap errors
This should make it easier (possible) to see if errors point at the right lines.
No idea why I had to add 1 to the column, you'd think it's all babel-standard
(whatever it is) and there wouldn't be off by one errors, but I'm not quite in
the mood to debug babel issues more then necessary right now...
2024-02-15 18:42:21 -05:00
Lauren Tan
742a6f09bf
[ez] Get rid of caniuse warning
2024-01-30 14:54:04 -05:00
Lauren Tan
6b49c4f2d5
[eslint-plugin] Cleanup package.json
...
Removes some unused packages and unused package.json fields
2024-01-25 10:29:32 -05:00
Joe Savona
90348cc873
[housekeeping] Remove disabled test262 setup
...
I sincerely appreciate the effort to get test262 up and running. This was my
idea, it seemed like a really good way to test our correctness on edge cases of
JS. Unfortunately test262 relies heavily on a few specific features that we
don't support, like classes and `var`, which has meant that we never actually
use this as a test suite.
In the meantime we've created a pretty extensive test suite and have tools like
Sprout to test actual memoization behavior at runtime, which is the right place
to invest our energy. Let's remove?
2024-01-12 12:26:30 -08:00
Joe Savona
7ca3b004ae
Early branch with new type inference foundation
...
It's starting to get complex just with a couple of extra
passes — we either need to substantially extend the HIR or (as i've done so far)
pass information from early passes to later ones. This PR changes things so that
very early in the babel plugin we fork into a separate mode. Forest has
its own `compileProgram()` equivalent, its own pipeline, its own codegen, etc.
2024-01-03 10:47:47 -08:00
Sathya Gunasekaran
be03439687
[yarn] Update hermes-parser
...
Need new version for component syntax updates
2023-11-28 14:18:24 +00:00
Mofei Zhang
372696c541
[sprout] Add support for fbt
...
Fbt + typescript [seems](https://github.com/facebook/fbt/issues/49 ) [to
be](https://github.com/facebook/sfbt/issues/72 ) a non-blessed workflow. We do
want to allow for both flow and typescript tests, so I followed some
instructions [from a
guide](https://dev.to/retyui/how-to-add-support-typescript-for-fbt-an-internationalization-framework-3lo0 )
to add support.
- fbt tags desugar to.. "fbt" strings. By default, typescript removes unused
imports at parse step (and on autoformat steps). We pass special
babel-typescript configs and change vscode settings to mitigate this.
- I tried adding `fbt` to the global scope, but the fbt transform asserts that
`fbt` is actually imported in the source program.
- Other hacks are available, like saying we'll only allow for fbt in flow files,
or always patching the source code to have an "fbt" import. This seemed the most
reasonable and easiest to debug / follow when writing tests
2023-11-09 18:55:05 -05:00
Lauren Tan
2726484823
Add license to rolledup output
2023-11-09 13:00:13 -05:00
Sathya Gunasekaran
3d6d81052d
[be] Upgrade Eslint to 8.27.0
2023-11-08 08:27:41 +00:00
Sathya Gunasekaran
d6ff65ecc7
Add runtime validation for ExternalFunction
...
Use zod to do runtime validation and throw if incorrect.
This PR only adds validation for ExternalFunction, will validate other options
in follow on PRs.
2023-11-07 11:04:33 +00:00
Lauren Tan
a74982d660
[eslint] Update hermes-parser, add hermes-eslint
2023-11-03 11:49:02 -04:00
Sathya Gunasekaran
dca54c8932
[playground] Use standalone prettier
...
All of these warnings go away: ``` ➜ playground git:(remove-prettier) ✗ yarn
dev yarn run v1.22.19 $ NODE_ENV=development && next dev ready - started server
on 0.0.0.0:3000, url: http://localhost:3000 warn - You have enabled
experimental feature (appDir) in next.config.js. warn - Experimental features
are not covered by semver, and may cause unexpected or broken application
behavior. Use at your own risk. info - Thank you for testing `appDir` please
leave your feedback at https://nextjs.link/app-feedback
event - compiled client and server successfully in 964 ms (199 modules) wait -
compiling /page (client and server)... warn -
../../node_modules/prettier/index.js Critical dependency: the request of a
dependency is an expression
../../node_modules/prettier/index.js Critical dependency: require function is
used in a way in which dependencies cannot be statically extracted
../../node_modules/prettier/index.js Critical dependency: the request of a
dependency is an expression
../../node_modules/prettier/index.js Critical dependency: the request of a
dependency is an expression
../../node_modules/prettier/third-party.js Critical dependency: the request of a
dependency is an expression wait - compiling... warn -
../../node_modules/prettier/index.js Critical dependency: the request of a
dependency is an expression
../../node_modules/prettier/index.js Critical dependency: require function is
used in a way in which dependencies cannot be statically extracted
../../node_modules/prettier/index.js Critical dependency: the request of a
dependency is an expression
../../node_modules/prettier/index.js Critical dependency: the request of a
dependency is an expression
../../node_modules/prettier/third-party.js Critical dependency: the request of a
dependency is an expression ```
Standalone prettier is meant to be used in the browser:
https://prettier.io/docs/en/browser
2023-11-02 07:00:05 -07:00
Lauren Tan
139336b87c
[feedback] Specify react dep for react-forget-runtime
2023-11-01 13:12:09 -04:00
Mofei Zhang
c7c57ec531
[playground] QoL use webpack to bundle monaco-editor's loader
...
---
This lets us load playground locally, entirely offline (e.g. on an airplane,
when a cdn is down, at ReactAdvanced, etc)
Before:
See external script link
<img width="691" alt="image"
src="https://github.com/facebook/react-forget/assets/34200447/85500e86-c1a5-4dff-bdcd-58db0d6fd453 ">
Now:
No external script
<img width="476" alt="image"
src="https://github.com/facebook/react-forget/assets/34200447/fdcbea09-0b5f-42e3-9310-35d8d1d726b7 ">
2023-10-30 14:53:00 -04:00
Sathya Gunasekaran
48d465eb22
[playground] Upgrade to latest nextjs
2023-10-23 15:41:00 +01:00
Joe Savona
ef51c92c8a
first rendering test
...
Updates the rendering code and gets a first unit test working with a fully
static component (written by hand rather than compiled).
2023-09-05 14:03:22 -07:00
Lauren Tan
fdd6a1b8b1
Add rollup to eslint-plugin-react-forget
2023-09-05 12:08:00 -04:00
Mofei Zhang
c7b5f2fde0
[yarn] Update typescript node16 -> node18
2023-08-29 16:51:32 -07:00
lauren
a0dc166991
[rfc] Remove top level forget directory
...
Sorry about the thrash in advance! This removes the top level `forget` directory
which adds unnecessary nesting to our repo
Hopefully everything still works
2023-08-22 15:04:54 -04:00