mirror of https://github.com/status-im/metro.git
Revert D7729796: Enforce by default a local FileStore cache
Differential Revision: D7729796 Original commit changeset: 03100516973f fbshipit-source-id: c9cc5210ac8559ff4878e27d5a5e3133408637c8
This commit is contained in:
parent
76be88b515
commit
6708136b76
|
@ -10,11 +10,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const blacklist = require('./blacklist');
|
const blacklist = require('./blacklist');
|
||||||
const os = require('os');
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
const {providesModuleNodeModules} = require('./defaults');
|
const {providesModuleNodeModules} = require('./defaults');
|
||||||
const {FileStore} = require('metro-cache');
|
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
GetTransformOptions,
|
GetTransformOptions,
|
||||||
|
@ -180,11 +178,7 @@ const DEFAULT = ({
|
||||||
enhanceMiddleware: middleware => middleware,
|
enhanceMiddleware: middleware => middleware,
|
||||||
extraNodeModules: {},
|
extraNodeModules: {},
|
||||||
assetTransforms: false,
|
assetTransforms: false,
|
||||||
cacheStores: [
|
cacheStores: [],
|
||||||
new FileStore({
|
|
||||||
root: path.join(os.tmpdir(), 'metro-cache'),
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
cacheVersion: '1.0',
|
cacheVersion: '1.0',
|
||||||
dynamicDepsInPackages: 'throwAtRuntime',
|
dynamicDepsInPackages: 'throwAtRuntime',
|
||||||
getAsyncRequireModulePath: () => 'metro/src/lib/bundle-modules/asyncRequire',
|
getAsyncRequireModulePath: () => 'metro/src/lib/bundle-modules/asyncRequire',
|
||||||
|
|
Loading…
Reference in New Issue