Skip to content

Commit

Permalink
Merge branch 'canary' into fix-turso-client-build-error
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] committed Sep 29, 2023
2 parents 0a5d8a7 + bf35b47 commit 6a56e36
Show file tree
Hide file tree
Showing 19 changed files with 134 additions and 617 deletions.
197 changes: 114 additions & 83 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Cargo.toml
Expand Up @@ -32,18 +32,18 @@ next-transform-dynamic = { path = "packages/next-swc/crates/next-transform-dynam
next-transform-strip-page-exports = { path = "packages/next-swc/crates/next-transform-strip-page-exports" }

# SWC crates
swc_core = { version = "0.83.12", features = [
swc_core = { version = "0.83.28", features = [
"ecma_loader_lru",
"ecma_loader_parking_lot",
] }
testing = { version = "0.34.1" }

# Turbo crates
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230929.1" }
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230929.3" }
# [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-230929.1" }
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230929.3" }
# [TODO]: need to refactor embed_directory! macro usage in next-core
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230929.1" }
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230929.3" }

# General Deps

Expand Down
2 changes: 2 additions & 0 deletions packages/next-swc/crates/core/Cargo.toml
Expand Up @@ -33,6 +33,8 @@ turbopack-binding = { workspace = true, features = [
"__swc_transform_modularize_imports",
"__swc_transform_relay",
] }
react_remove_properties = "0.3.0"
remove_console = "0.4.0"

[dev-dependencies]
turbopack-binding = { workspace = true, features = [
Expand Down
10 changes: 5 additions & 5 deletions packages/next-swc/crates/core/src/lib.rs
Expand Up @@ -63,12 +63,9 @@ pub mod next_ssg;
pub mod optimize_barrel;
pub mod optimize_server_react;
pub mod page_config;
pub mod react_remove_properties;
pub mod react_server_components;
pub mod remove_console;
pub mod server_actions;
pub mod shake_exports;
mod top_level_binding_collector;

#[derive(Clone, Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
Expand Down Expand Up @@ -251,12 +248,15 @@ where
relay_plugin,
match &opts.remove_console {
Some(config) if config.truthy() =>
Either::Left(remove_console::remove_console(config.clone())),
Either::Left(remove_console::remove_console(
config.clone(),
SyntaxContext::empty().apply_mark(unresolved_mark)
)),
_ => Either::Right(noop()),
},
match &opts.react_remove_properties {
Some(config) if config.truthy() =>
Either::Left(react_remove_properties::remove_properties(config.clone())),
Either::Left(react_remove_properties::react_remove_properties(config.clone())),
_ => Either::Right(noop()),
},
match &opts.shake_exports {
Expand Down
72 changes: 0 additions & 72 deletions packages/next-swc/crates/core/src/react_remove_properties.rs

This file was deleted.

131 changes: 0 additions & 131 deletions packages/next-swc/crates/core/src/remove_console.rs

This file was deleted.

131 changes: 0 additions & 131 deletions packages/next-swc/crates/core/src/top_level_binding_collector.rs

This file was deleted.

0 comments on commit 6a56e36

Please sign in to comment.