mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Use CompileCache supportedExtensions instead of require.extensions
This commit is contained in:
@@ -221,5 +221,5 @@ exports.install = function (nodeRequire) {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
exports.supportedExtensions = Object.keys(COMPILERS)
|
||||
exports.resetCacheStats()
|
||||
|
||||
@@ -503,7 +503,7 @@ class Package
|
||||
path.join(@path, @metadata.main)
|
||||
else
|
||||
path.join(@path, 'index')
|
||||
@mainModulePath = fs.resolveExtension(mainModulePath, ["", _.keys(require.extensions)...])
|
||||
@mainModulePath = fs.resolveExtension(mainModulePath, ["", CompileCache.supportedExtensions...])
|
||||
|
||||
activationShouldBeDeferred: ->
|
||||
@hasActivationCommands() or @hasActivationHooks()
|
||||
|
||||
Reference in New Issue
Block a user