Skip to content

Commit 0a385ac

Browse files
committed
Improved support for Next 13
1 parent 7051e1a commit 0a385ac

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lup-root",
3-
"version": "1.3.9",
3+
"version": "1.3.10",
44
"description": "Determines absolute path to project root and main file",
55
"files": [
66
"lib/**/*"

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ try {
4242
let path = line.substring(start, end).trim().replace(/\\/g, '/'); // '\' -> '/'
4343
start = end + 1;
4444
if (
45-
path.length === 0 ||
46-
path === 'rsc' ||
45+
path.lastIndexOf('.') < 0 ||
4746
path.startsWith('internal/modules/') ||
4847
path.startsWith('node:') ||
4948
path.startsWith('webpack-internal:') ||

0 commit comments

Comments
 (0)