We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7051e1a commit 0a385acCopy full SHA for 0a385ac
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "lup-root",
3
- "version": "1.3.9",
+ "version": "1.3.10",
4
"description": "Determines absolute path to project root and main file",
5
"files": [
6
"lib/**/*"
src/index.ts
@@ -42,8 +42,7 @@ try {
42
let path = line.substring(start, end).trim().replace(/\\/g, '/'); // '\' -> '/'
43
start = end + 1;
44
if (
45
- path.length === 0 ||
46
- path === 'rsc' ||
+ path.lastIndexOf('.') < 0 ||
47
path.startsWith('internal/modules/') ||
48
path.startsWith('node:') ||
49
path.startsWith('webpack-internal:') ||
0 commit comments