Skip to content

Commit

Permalink
Actually fix require paths
Browse files Browse the repository at this point in the history
  • Loading branch information
winstliu committed Apr 12, 2016
1 parent 37ea3c9 commit 2a9bc0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module-cache.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ registerBuiltins = (devMode) ->

atomShellRoot = path.join(process.resourcesPath, 'atom.asar')

commonRoot = path.join(atomShellRoot, 'lib', 'common', 'api')
commonRoot = path.join(atomShellRoot, 'common', 'api')
commonBuiltins = ['callbacks-registry', 'clipboard', 'crash-reporter', 'screen', 'shell']
for builtin in commonBuiltins
cache.builtins[builtin] = path.join(commonRoot, "#{builtin}.js")

rendererRoot = path.join(atomShellRoot, 'lib', 'renderer', 'api')
rendererRoot = path.join(atomShellRoot, 'renderer', 'api')
rendererBuiltins = ['ipc-renderer', 'remote']
for builtin in rendererBuiltins
cache.builtins[builtin] = path.join(rendererRoot, "#{builtin}.js")
Expand Down

0 comments on commit 2a9bc0f

Please sign in to comment.