add node:url alias (#57478)

add the missing polyfill

Closes WEB-1881
This commit is contained in:
Tobias Koppers 2023-10-25 22:40:39 -07:00 committed by GitHub
parent 0127fc75a1
commit 377d6bab06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(())