File tree 2 files changed +4
-2
lines changed
packages/jest-haste-map/src
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
### Fixes
8
8
9
9
- ` [jest-haste-map] ` [ ** BREAKING** ] Replace internal data structures to improve performance ([ #6960 ] ( https://github.com/facebook/jest/pull/6960 ) )
10
- - ` [jest-haste-map] ` Used relative paths internally to allow remote caching ([ #7020 ] ( https://github.com/facebook/jest/pull/7020 ) )
10
+ - ` [jest-haste-map] ` Use relative paths to allow remote caching ([ #7020 ] ( https://github.com/facebook/jest/pull/7020 ) )
11
11
- ` [jest-haste-map] ` Do not visit again files with the same sha-1 ([ #6990 ] ( https://github.com/facebook/jest/pull/6990 ) )
12
12
- ` [jest-jasmine2] ` Fix memory leak in Error objects hold by the framework ([ #6965 ] ( https://github.com/facebook/jest/pull/6965 ) )
13
13
- ` [jest-haste-map] ` Fixed Haste whitelist generation for scoped modules on Windows ([ #6980 ] ( https://github.com/facebook/jest/pull/6980 ) )
Original file line number Diff line number Diff line change @@ -258,7 +258,9 @@ class HasteMap extends EventEmitter {
258
258
this . _options . cacheDirectory ,
259
259
`haste-map-${ this . _options . name } ` ,
260
260
VERSION ,
261
- this . _options . roots . join ( ':' ) ,
261
+ this . _options . roots
262
+ . map ( root => path . relative ( options . rootDir , root ) )
263
+ . join ( ':' ) ,
262
264
this . _options . extensions . join ( ':' ) ,
263
265
this . _options . platforms . join ( ':' ) ,
264
266
this . _options . computeSha1 . toString ( ) ,
You can’t perform that action at this time.
0 commit comments