Skip to content

Commit

Permalink
add node:url alias
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Oct 26, 2023
1 parent a19b1ef commit 03befa1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next-swc/crates/next-core/src/next_import_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down

0 comments on commit 03befa1

Please sign in to comment.