mirror of
https://github.com/status-im/metro.git
synced 2025-03-02 19:50:28 +00:00
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
2068e661a5
commit
6e5730601a
@ -42,7 +42,6 @@ describe('Resolver', function() {
|
|||||||
DependencyGraph.load = jest.fn().mockImplementation(
|
DependencyGraph.load = jest.fn().mockImplementation(
|
||||||
opts => Promise.resolve(new DependencyGraph(opts)),
|
opts => Promise.resolve(new DependencyGraph(opts)),
|
||||||
);
|
);
|
||||||
DependencyGraph.replacePatterns = require.requireActual('../../node-haste/lib/replacePatterns');
|
|
||||||
DependencyGraph.prototype.createPolyfill = jest.fn();
|
DependencyGraph.prototype.createPolyfill = jest.fn();
|
||||||
DependencyGraph.prototype.getDependencies = jest.fn();
|
DependencyGraph.prototype.getDependencies = jest.fn();
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ jest
|
|||||||
.dontMock('absolute-path')
|
.dontMock('absolute-path')
|
||||||
.dontMock('json-stable-stringify')
|
.dontMock('json-stable-stringify')
|
||||||
.dontMock('crypto')
|
.dontMock('crypto')
|
||||||
.dontMock('../lib/replacePatterns')
|
|
||||||
.dontMock('../DependencyGraph/docblock')
|
.dontMock('../DependencyGraph/docblock')
|
||||||
.dontMock('../Module');
|
.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…
x
Reference in New Issue
Block a user