packager: remove replacePatterns module
Summary: This does not appear to be used anywhere anymore. Reviewed By: cpojer Differential Revision: D5052224 fbshipit-source-id: 142fdcdf48f4ad16a04bb747b41d623f214f7a68
This commit is contained in:
parent
174f84cc8a
commit
ffe18867f2
|
@ -42,7 +42,6 @@ describe('Resolver', function() {
|
|||
DependencyGraph.load = jest.fn().mockImplementation(
|
||||
opts => Promise.resolve(new DependencyGraph(opts)),
|
||||
);
|
||||
DependencyGraph.replacePatterns = require.requireActual('../../node-haste/lib/replacePatterns');
|
||||
DependencyGraph.prototype.createPolyfill = jest.fn();
|
||||
DependencyGraph.prototype.getDependencies = jest.fn();
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ jest
|
|||
.dontMock('absolute-path')
|
||||
.dontMock('json-stable-stringify')
|
||||
.dontMock('crypto')
|
||||
.dontMock('../lib/replacePatterns')
|
||||
.dontMock('../DependencyGraph/docblock')
|
||||
.dontMock('../Module');
|
||||
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
exports.IMPORT_RE = /(\bimport\s+(?:[^'"]+\s+from\s+)??)(['"])([^'"]+)(\2)/g;
|
||||
exports.EXPORT_RE = /(\bexport\s+(?:[^'"]+\s+from\s+)??)(['"])([^'"]+)(\2)/g;
|
||||
exports.REQUIRE_RE = /(\brequire\s*?\(\s*?)(['"`])([^'"`]+)(\2\s*?\))/g;
|
Loading…
Reference in New Issue