File tree 2 files changed +1
-28
lines changed
2 files changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ function ManifestPlugin(opts) {
8
8
fileName : 'manifest.json' ,
9
9
transformExtensions : / ^ ( g z | m a p ) $ / i,
10
10
writeToFileEmit : false ,
11
- cache : null , // TODO: Remove `cache` in next major release in favour of `seed`.
12
11
seed : null ,
13
12
filter : null ,
14
13
map : null ,
@@ -28,7 +27,7 @@ ManifestPlugin.prototype.getFileType = function(str) {
28
27
29
28
ManifestPlugin . prototype . apply = function ( compiler ) {
30
29
var outputName = this . opts . fileName ;
31
- var seed = this . opts . seed || this . opts . cache || { } ;
30
+ var seed = this . opts . seed || { } ;
32
31
var moduleAssets = { } ;
33
32
34
33
compiler . plugin ( "compilation" , function ( compilation ) {
Original file line number Diff line number Diff line change @@ -311,32 +311,6 @@ describe('ManifestPlugin', function() {
311
311
} ) ;
312
312
} ) ;
313
313
314
- it ( 'still accepts cache parameter (deprecated)' , function ( done ) {
315
- var cache = { } ;
316
- webpackCompile ( [ {
317
- context : __dirname ,
318
- entry : {
319
- one : './fixtures/file.js'
320
- }
321
- } , {
322
- context : __dirname ,
323
- entry : {
324
- two : './fixtures/file-two.js'
325
- }
326
- } ] , {
327
- manifestOptions : {
328
- cache : cache
329
- }
330
- } , function ( manifest ) {
331
- expect ( manifest ) . toEqual ( {
332
- 'one.js' : 'one.js' ,
333
- 'two.js' : 'two.js'
334
- } ) ;
335
-
336
- done ( ) ;
337
- } ) ;
338
- } ) ;
339
-
340
314
it ( 'outputs a manifest of no-js file' , function ( done ) {
341
315
webpackCompile ( {
342
316
context : __dirname ,
You can’t perform that action at this time.
0 commit comments