Skip to content

Commit

Permalink
Use configUrl instead of configPath
Browse files Browse the repository at this point in the history
  • Loading branch information
bgw committed Apr 17, 2024
1 parent 22102a7 commit 177ceb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/turbopack-node/src/transforms/postcss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ pub(crate) async fn config_loader_source(
// https://github.com/nodejs/node/issues/31710
// convert it to a file:// URL, which works on all platforms
const configUrl = pathToFileURL(configPath).toString();
const mod = await __turbopack_external_import__(configPath);
const mod = await __turbopack_external_import__(configUrl);
export default mod.default ?? mod;
"#,
Expand Down

0 comments on commit 177ceb8

Please sign in to comment.