mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Load CoffeeScript when using a custom resource path
Load CoffeeScript early whenever the resource path a subdirectory from process.resourcesPath Close #3993
This commit is contained in:
@@ -192,7 +192,7 @@ resolveModulePath = (relativePath, parentModule) ->
|
||||
return
|
||||
|
||||
registerBuiltins = (devMode) ->
|
||||
if devMode
|
||||
if devMode or not cache.resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
|
||||
fs = require 'fs-plus'
|
||||
atomCoffeePath = path.join(cache.resourcePath, 'exports', 'atom.coffee')
|
||||
cache.builtins.atom = atomCoffeePath if fs.isFileSync(atomCoffeePath)
|
||||
|
||||
Reference in New Issue
Block a user