diff --git a/packages/next-swc/crates/next-core/src/next_import_map.rs b/packages/next-swc/crates/next-core/src/next_import_map.rs index 3d3aac81dc4d5..dfb6b43c5b7a1 100644 --- a/packages/next-swc/crates/next-core/src/next_import_map.rs +++ b/packages/next-swc/crates/next-core/src/next_import_map.rs @@ -708,6 +708,7 @@ async fn insert_optimized_module_aliases( "object.assign/polyfill" => "next/dist/build/polyfills/object.assign/polyfill.js".to_string(), "object.assign/shim" => "next/dist/build/polyfills/object.assign/shim.js".to_string(), "url" => "next/dist/compiled/native-url".to_string(), + "node:url" => "next/dist/compiled/native-url".to_string(), }, ); Ok(())