Skip to content

Commit

Permalink
Add todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Jun 2, 2023
1 parent 10d7320 commit 49816c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/frameworks/nextjs/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export const scopedResolve = (id: string): string => {
let scopedModulePath;

try {
// TODO: Remove in next major release (SB 8.0) and use the statement in the catch block per default instead
scopedModulePath = require.resolve(id, { paths: [path.resolve()] });
} catch (e) {
scopedModulePath = require.resolve(id);
Expand Down

0 comments on commit 49816c5

Please sign in to comment.