Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix internal JS/TS references not being processed #5457

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

alexkirsz
Copy link
Contributor

Description

My recent change in #5397 added a way to create rules that only apply to internal references. In the process, I also made it so the default rules don't apply to internal references as well. However, we still need them to apply to TS and JS files, as we use that with ReferenceType::Internal in Next.js.

Testing Instructions

Next.js CI

@alexkirsz alexkirsz requested a review from a team as a code owner July 4, 2023 12:50
@vercel
Copy link

vercel bot commented Jul 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
turbo-site ✅ Ready (Inspect) Visit Preview Jul 4, 2023 0:50am
10 Ignored Deployments
Name Status Preview Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Jul 4, 2023 0:50am
examples-cra-web ⬜️ Ignored (Inspect) Jul 4, 2023 0:50am
examples-designsystem-docs ⬜️ Ignored (Inspect) Jul 4, 2023 0:50am
examples-gatsby-web ⬜️ Ignored (Inspect) Jul 4, 2023 0:50am
examples-kitchensink-blog ⬜️ Ignored (Inspect) Jul 4, 2023 0:50am
examples-native-web ⬜️ Ignored (Inspect) Jul 4, 2023 0:50am
examples-nonmonorepo ⬜️ Ignored (Inspect) Jul 4, 2023 0:50am
examples-svelte-web ⬜️ Ignored (Inspect) Jul 4, 2023 0:50am
examples-tailwind-web ⬜️ Ignored (Inspect) Jul 4, 2023 0:50am
examples-vite-web ⬜️ Ignored (Inspect) Jul 4, 2023 0:50am

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

✅ This change can build next-swc

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

🟢 CI successful 🟢

Thanks

@sokra sokra merged commit 8ad761a into main Jul 4, 2023
45 checks passed
@sokra sokra deleted the alexkirsz/web-866-fix-internal-js branch July 4, 2023 13:03
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

Linux Benchmark for 4b79e3f

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 5819.38µs ± 24.49µs 5832.54µs ± 28.81µs +0.23%
bench_hmr_to_eval/Turbopack CSR/1000 modules 5436.29µs ± 29.36µs 5648.25µs ± 132.52µs +3.90%
bench_startup/Turbopack CSR/1000 modules 914.36ms ± 2.24ms 911.60ms ± 3.21ms -0.30%

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

MacOS Benchmark for 4b79e3f

Test Base PR % Significant %
bench_startup/Turbopack CSR/1000 modules 3651.59ms ± 42.83ms 13.14s ± 1.95s +259.85% +147.37%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 29.01ms ± 0.25ms 28.74ms ± 0.07ms -0.94%
bench_hmr_to_eval/Turbopack CSR/1000 modules 27.15ms ± 0.43ms 24.75ms ± 0.84ms -8.83%
bench_startup/Turbopack CSR/1000 modules 3651.59ms ± 42.83ms 13.14s ± 1.95s +259.85% +147.37%

alexkirsz added a commit that referenced this pull request Jul 4, 2023
### Description

In #5457, I fixed internal .jsx?/.tsx? references not being processed.
However, it turns out we also use `.mjs` for structured images in
Next.js, which also use internal references.

### Testing Instructions

Next.js CI
kodiakhq bot pushed a commit to vercel/next.js that referenced this pull request Jul 4, 2023
shuding pushed a commit to vercel/next.js that referenced this pull request Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants