Skip to content

Commit

Permalink
refactor(next-core): do not reexport turbopack_binding (#62018)
Browse files Browse the repository at this point in the history
### What

Minor correction to the imports, turbopack_binding should not be
reexported.


Closes PACK-2490
  • Loading branch information
kwonoj committed Feb 14, 2024
1 parent 17fd7a5 commit 39deaa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/next-swc/crates/next-build/src/build_options.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::path::PathBuf;

use next_core::{next_config::Rewrites, turbopack::core::issue::IssueSeverity};
use next_core::next_config::Rewrites;
use turbopack_binding::turbopack::core::issue::IssueSeverity;

#[derive(Clone, Debug)]
pub struct BuildOptions {
Expand Down
3 changes: 1 addition & 2 deletions packages/next-swc/crates/next-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ pub use next_edge::context::{
get_edge_chunking_context, get_edge_compile_time_info, get_edge_resolve_options_context,
};
pub use page_loader::{create_page_loader_entry_module, PageLoaderAsset};
use turbopack_binding::turbo;
pub use turbopack_binding::{turbopack, turbopack::node::source_map};
use turbopack_binding::{turbo, turbopack};
pub use util::{get_asset_path_from_pathname, pathname_for_path, PathType};

pub fn register() {
Expand Down

0 comments on commit 39deaa5

Please sign in to comment.