diff --git a/src/module-cache.coffee b/src/module-cache.coffee index 45a9261ef..8223086fd 100644 --- a/src/module-cache.coffee +++ b/src/module-cache.coffee @@ -154,6 +154,7 @@ resolveModulePath = (relativePath, parentModule) -> registerBuiltins = (devMode) -> if devMode + fs = require 'fs-plus' atomCoffeePath = path.join(cache.resourcePath, 'exports', 'atom.coffee') cache.builtins.atom = atomCoffeePath if fs.isFileSync(atomCoffeePath) cache.builtins.atom ?= path.join(cache.resourcePath, 'exports', 'atom.js')