Unverified Commit 6b659059 authored by Donny/강동윤's avatar Donny/강동윤 Committed by GitHub

Update turbopack (#63541)

# Turbopack

* https://github.com/vercel/turbo/pull/7815 <!-- Tobias Koppers - fix
alias in getResolve -->
* https://github.com/vercel/turbo/pull/7796 <!-- Donny/강동윤 - Update
`swc_core` to `v0.90.24` -->
* https://github.com/vercel/turbo/pull/7775 <!-- Tobias Koppers - fix
single css chunks with import context -->
* https://github.com/vercel/turbo/pull/7776 <!-- Tobias Koppers - change
port of trace-server -->
* https://github.com/vercel/turbo/pull/7763 <!-- Tobias Koppers -
Tracing improvements -->
* https://github.com/vercel/turbo/pull/7813 <!-- Tobias Koppers - fix
webpack loader incorrectly calling custom_evaluate -->
* https://github.com/vercel/turbo/pull/7764 <!-- Tobias Koppers - fix
some small bugs in turbo-tasks that are required for GC -->
* https://github.com/vercel/turbo/pull/7816 <!-- Chris Olszewski -
chore: remove some unused imports -->
* https://github.com/vercel/turbo/pull/7823 <!-- OJ Kwon -
fix(sourcemap): update sourcemap, remove checker -->

### What?

Update SWC crates to
https://github.com/swc-project/swc/commit/ad932f0921411364b801b32f60eaf98f8629e812

### Why?

To keep in sync.

### How?



 - Closes PACK-2807
 - Closes PACK-2819

---------
Co-authored-by: 's avatarTim Neutkens <tim@timneutkens.nl>
parent ce012095
This diff is collapsed.
...@@ -30,18 +30,18 @@ next-core = { path = "packages/next-swc/crates/next-core" } ...@@ -30,18 +30,18 @@ next-core = { path = "packages/next-swc/crates/next-core" }
next-custom-transforms = { path = "packages/next-swc/crates/next-custom-transforms" } next-custom-transforms = { path = "packages/next-swc/crates/next-custom-transforms" }
# SWC crates # SWC crates
swc_core = { version = "0.90.22", features = [ swc_core = { version = "0.90.24", features = [
"ecma_loader_lru", "ecma_loader_lru",
"ecma_loader_parking_lot", "ecma_loader_parking_lot",
] } ] }
testing = { version = "0.35.20" } testing = { version = "0.35.21" }
# Turbo crates # Turbo crates
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240321.3" } turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240325.1" }
# [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros.. # [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros..
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240321.3" } turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240325.1" }
# [TODO]: need to refactor embed_directory! macro usage in next-core # [TODO]: need to refactor embed_directory! macro usage in next-core
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240321.3" } turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240325.1" }
# General Deps # General Deps
......
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
"@types/ws": "8.2.0", "@types/ws": "8.2.0",
"@vercel/ncc": "0.34.0", "@vercel/ncc": "0.34.0",
"@vercel/nft": "0.26.4", "@vercel/nft": "0.26.4",
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240319.2", "@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240325.1",
"acorn": "8.5.0", "acorn": "8.5.0",
"amphtml-validator": "1.0.35", "amphtml-validator": "1.0.35",
"anser": "1.4.9", "anser": "1.4.9",
......
...@@ -1071,8 +1071,8 @@ importers: ...@@ -1071,8 +1071,8 @@ importers:
specifier: 0.26.4 specifier: 0.26.4
version: 0.26.4 version: 0.26.4
'@vercel/turbopack-ecmascript-runtime': '@vercel/turbopack-ecmascript-runtime':
specifier: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240319.2 specifier: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240325.1
version: '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240319.2' version: '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240325.1'
acorn: acorn:
specifier: 8.5.0 specifier: 8.5.0
version: 8.5.0 version: 8.5.0
...@@ -25486,8 +25486,8 @@ packages: ...@@ -25486,8 +25486,8 @@ packages:
/zwitch@2.0.4: /zwitch@2.0.4:
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
'@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240319.2': '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240325.1':
resolution: {tarball: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240319.2} resolution: {tarball: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240325.1}
name: '@vercel/turbopack-ecmascript-runtime' name: '@vercel/turbopack-ecmascript-runtime'
version: 0.0.0 version: 0.0.0
dependencies: dependencies:
......
...@@ -58,6 +58,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => { ...@@ -58,6 +58,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => {
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
2 | module.exports = dns 2 | module.exports = dns
Import map: No import map entry
https://nextjs.org/docs/messages/module-not-found" https://nextjs.org/docs/messages/module-not-found"
`) `)
} else { } else {
...@@ -106,6 +108,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => { ...@@ -106,6 +108,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => {
3 | return ( 3 | return (
4 | <div> 4 | <div>
Import map: No import map entry
https://nextjs.org/docs/messages/module-not-found" https://nextjs.org/docs/messages/module-not-found"
`) `)
} else { } else {
...@@ -160,6 +164,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => { ...@@ -160,6 +164,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => {
4 | return ( 4 | return (
5 | <div> 5 | <div>
Import map: No import map entry
https://nextjs.org/docs/messages/module-not-found" https://nextjs.org/docs/messages/module-not-found"
`) `)
} else { } else {
...@@ -210,6 +216,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => { ...@@ -210,6 +216,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => {
4 | return <p>index page</p> 4 | return <p>index page</p>
5 | } 5 | }
Import map: No import map entry
https://nextjs.org/docs/messages/module-not-found" https://nextjs.org/docs/messages/module-not-found"
`) `)
} else { } else {
......
...@@ -106,6 +106,8 @@ Module not found: Can't resolve './boom.css' ...@@ -106,6 +106,8 @@ Module not found: Can't resolve './boom.css'
> 1 | @import "./boom.css" > 1 | @import "./boom.css"
| ^ | ^
Import map: No import map entry
https://nextjs.org/docs/messages/module-not-found" https://nextjs.org/docs/messages/module-not-found"
`; `;
...@@ -115,6 +117,8 @@ Module not found: Can't resolve 'non-existing-module' ...@@ -115,6 +117,8 @@ Module not found: Can't resolve 'non-existing-module'
> 1 | import "non-existing-module" > 1 | import "non-existing-module"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Import map: No import map entry
https://nextjs.org/docs/messages/module-not-found" https://nextjs.org/docs/messages/module-not-found"
`; `;
......
...@@ -45,28 +45,30 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox %s', () => { ...@@ -45,28 +45,30 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox %s', () => {
` `
) )
expect(await session.hasRedbox()).toBe(true) expect(await session.hasRedbox()).toBe(true)
expect(await session.getRedboxSource()).toMatchInlineSnapshot( if (process.env.TURBOPACK) {
process.env.TURBOPACK expect(await session.getRedboxSource()).toMatchInlineSnapshot(`
? ` "./node_modules/my-package/index.js:1:13
"./node_modules/my-package/index.js:1:13 Module not found: Can't resolve 'dns'
Module not found: Can't resolve 'dns' > 1 | const dns = require('dns')
> 1 | const dns = require('dns') | ^^^^^^^^^^^^^^
| ^^^^^^^^^^^^^^ 2 | module.exports = dns
2 | module.exports = dns
Import map: No import map entry
https://nextjs.org/docs/messages/module-not-found"
` https://nextjs.org/docs/messages/module-not-found"
: ` `)
"./node_modules/my-package/index.js:1:1 } else {
Module not found: Can't resolve 'dns' expect(await session.getRedboxSource()).toMatchInlineSnapshot(`
"./node_modules/my-package/index.js:1:1
https://nextjs.org/docs/messages/module-not-found Module not found: Can't resolve 'dns'
Import trace for requested module: https://nextjs.org/docs/messages/module-not-found
./index.js
./pages/index.js" Import trace for requested module:
` ./index.js
) ./pages/index.js"
`)
}
await cleanup() await cleanup()
}) })
...@@ -102,6 +104,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox %s', () => { ...@@ -102,6 +104,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox %s', () => {
3 | export default function Oops() { 3 | export default function Oops() {
4 | return ( 4 | return (
Import map: No import map entry
https://nextjs.org/docs/messages/module-not-found" https://nextjs.org/docs/messages/module-not-found"
`) `)
} else { } else {
...@@ -155,6 +159,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox %s', () => { ...@@ -155,6 +159,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox %s', () => {
3 | export default function Oops() { 3 | export default function Oops() {
4 | return ( 4 | return (
Import map: No import map entry
https://nextjs.org/docs/messages/module-not-found" https://nextjs.org/docs/messages/module-not-found"
`) `)
} else { } else {
...@@ -211,6 +217,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox %s', () => { ...@@ -211,6 +217,8 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox %s', () => {
3 | export default function App({ Component, pageProps }) { 3 | export default function App({ Component, pageProps }) {
4 | return <Component {...pageProps} /> 4 | return <Component {...pageProps} />
Import map: No import map entry
https://nextjs.org/docs/messages/module-not-found" https://nextjs.org/docs/messages/module-not-found"
`) `)
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment