atom-nuclide
Version:
A unified developer experience for web and mobile development, built as a suite of features on top of Atom to provide hackability and the support of an active community.
26 lines (20 loc) • 721 B
JavaScript
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
var _nuclideLogging2;
function _nuclideLogging() {
return _nuclideLogging2 = require('../../nuclide-logging');
}
var logger = (0, (_nuclideLogging2 || _nuclideLogging()).getLogger)();
// Use the pre-built, native module if available.
// If not, use the fallback JS implementation.
try {
module.exports = require('../VendorLib/fuzzy-native/lib/main');
} catch (e) {
logger.error('Failed to load native fuzzy matching. Falling back to JS implementation', e);
module.exports = require('./FallbackMatcher');
}