     return Promise.resolve() if @grammarsLoaded
 
     loadGrammar = (grammarPath, callback) =>
-      if @bundledPackage and not @packageManager.devMode
+      if @preloadedPackage
         grammarPath = path.resolve(@packageManager.resourcePath, grammarPath)
 
       @grammarRegistry.readGrammar grammarPath, (error, grammar) =>

        callback()

    new Promise (resolve) =>
      if @bundledPackage and not @packageManager.devMode
        grammarPaths = @packageManager.packagesCache[@name].grammarPaths
        async.each grammarPaths, loadGrammar, -> resolve()
      else

  isCompatible: ->
    return @compatible if @compatible?

    if @preloadedPackage
      # Preloaded packages are always considered compatible
      @compatible = true
    else if @getMainModulePath()
      @incompatibleModules = @getIncompatibleNativeModules()
