mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
use require.paths when resolving
This commit is contained in:
@@ -72,7 +72,7 @@ resolve = (file) ->
|
||||
file = file.replace '../', "#{prefix}/"
|
||||
|
||||
if file[0] isnt '/'
|
||||
paths.some (path) ->
|
||||
require.paths.some (path) ->
|
||||
if /\.(.+)$/.test(file) and __exists "#{path}/#{file}"
|
||||
file = "#{path}/#{file}"
|
||||
else if expanded = __expand "#{path}/#{file}"
|
||||
|
||||
Reference in New Issue
Block a user