Unverified Commit 38b9a5e4 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Bump swc to v45 (#85143)

<!-- Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below.
Choose the right checklist for the change(s) that you're making:

## For Contributors

### Improving Documentation

- Run `pnpm prettier-fix` to fix formatting issues before opening the PR.
- Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide

### Fixing a bug

- Related issues linked using `fixes #number`
- Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
- Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md

### Adding a feature

- Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas)
- Related issues/discussions are linked using `fixes #number`
- e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
- Documentation added
- Telemetry added. In case of a feature if it's used or not.
- Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md


## For Maintainers

- Minimal description (aim for explaining to someone not on the team to understand the PR)
- When linking to a Slack thread, you might want to share details of the conclusion
- Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
- Add review comments if necessary to explain to the reviewer the logic behind a change

### What?

### Why?

### How?

Closes NEXT-
Fixes #

-->
parent daf8b06f
This diff is collapsed.
...@@ -312,24 +312,24 @@ turbopack-trace-utils = { path = "turbopack/crates/turbopack-trace-utils" } ...@@ -312,24 +312,24 @@ turbopack-trace-utils = { path = "turbopack/crates/turbopack-trace-utils" }
turbopack-wasm = { path = "turbopack/crates/turbopack-wasm" } turbopack-wasm = { path = "turbopack/crates/turbopack-wasm" }
# SWC crates # SWC crates
swc_core = { version = "44.0.0", features = [ swc_core = { version = "45.0.1", features = [
"ecma_loader_lru", "ecma_loader_lru",
"ecma_loader_parking_lot", "ecma_loader_parking_lot",
"parallel_rayon", "parallel_rayon",
] } ] }
swc_plugin_backend_wasmer = { version = "2.0.0" } swc_plugin_backend_wasmer = { version = "3.0.0" }
testing = "15.0.0" testing = "16.0.0"
# Keep consistent with preset_env_base through swc_core # Keep consistent with preset_env_base through swc_core
browserslist-rs = "0.19.0" browserslist-rs = "0.19.0"
mdxjs = "1.0.3" mdxjs = "1.0.3"
modularize_imports = "0.98.0" modularize_imports = "0.99.0"
styled_components = "0.126.0" styled_components = "0.127.0"
styled_jsx = "0.102.0" styled_jsx = "0.103.0"
swc_emotion = "0.102.0" swc_emotion = "0.103.0"
swc_relay = "0.72.0" swc_relay = "0.73.0"
react_remove_properties = "0.52.0" react_remove_properties = "0.53.0"
remove_console = "0.53.0" remove_console = "0.54.0"
preset_env_base = "5.0.0" preset_env_base = "5.0.0"
......
...@@ -78,8 +78,8 @@ pub async fn expand_batches( ...@@ -78,8 +78,8 @@ pub async fn expand_batches(
/// Split chunk items into app code and vendor code. Continues splitting with /// Split chunk items into app code and vendor code. Continues splitting with
/// [package_name_split] if necessary. /// [package_name_split] if necessary.
#[tracing::instrument(level = Level::TRACE, skip_all, fields(name = display(&name)))] #[tracing::instrument(level = Level::TRACE, skip_all, fields(name = display(&name)))]
pub async fn app_vendors_split<'l>( pub async fn app_vendors_split(
chunk_items: Vec<&'l ChunkItemOrBatchWithInfo>, chunk_items: Vec<&'_ ChunkItemOrBatchWithInfo>,
mut name: String, mut name: String,
split_context: &mut SplitContext<'_>, split_context: &mut SplitContext<'_>,
) -> Result<()> { ) -> Result<()> {
...@@ -149,8 +149,8 @@ pub async fn app_vendors_split<'l>( ...@@ -149,8 +149,8 @@ pub async fn app_vendors_split<'l>(
/// Split chunk items by node_modules package name. Continues splitting with /// Split chunk items by node_modules package name. Continues splitting with
/// [folder_split] if necessary. /// [folder_split] if necessary.
#[tracing::instrument(level = Level::TRACE, skip_all, fields(name = display(&name)))] #[tracing::instrument(level = Level::TRACE, skip_all, fields(name = display(&name)))]
async fn package_name_split<'l>( async fn package_name_split(
chunk_items: Vec<&'l ChunkItemOrBatchWithInfo>, chunk_items: Vec<&'_ ChunkItemOrBatchWithInfo>,
mut name: String, mut name: String,
split_context: &mut SplitContext<'_>, split_context: &mut SplitContext<'_>,
) -> Result<()> { ) -> Result<()> {
......
...@@ -399,8 +399,8 @@ struct SplitContext<'a> { ...@@ -399,8 +399,8 @@ struct SplitContext<'a> {
/// Creates a chunk with the given `chunk_items. `key` should be unique. /// Creates a chunk with the given `chunk_items. `key` should be unique.
#[tracing::instrument(level = Level::TRACE, skip_all, fields(key = display(key)))] #[tracing::instrument(level = Level::TRACE, skip_all, fields(key = display(key)))]
async fn make_chunk<'l>( async fn make_chunk(
chunk_items: Vec<&'l ChunkItemOrBatchWithInfo>, chunk_items: Vec<&'_ ChunkItemOrBatchWithInfo>,
batch_groups: Vec<ResolvedVc<ChunkItemBatchGroup>>, batch_groups: Vec<ResolvedVc<ChunkItemBatchGroup>>,
key: &mut String, key: &mut String,
split_context: &mut SplitContext<'_>, split_context: &mut SplitContext<'_>,
......
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