Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Feb 20, 2024
1 parent 1ae3bd7 commit 5454f17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/next-swc/crates/next-core/src/next_server/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ impl ResolvePlugin for ExternalCjsModulesResolvePlugin {
let Some(result) = *node_resolved.first_source().await? else {
// this can't resolve with node.js from the project directory, so bundle it
return unable_to_externalize(
"The request could not be resolved by Node.js from the project directory.\nPackages \
that should be external need to be installed in the project directory, so they \
can be resolved from the output files.\nTry to install the package into the \
project directory.",
"The request could not be resolved by Node.js from the project \
directory.\nPackages that should be external need to be installed in the project \
directory, so they can be resolved from the output files.\nTry to install the \
package into the project directory.",
);
};
let node_resolved_from_original_location = resolve(
Expand Down

0 comments on commit 5454f17

Please sign in to comment.