File tree 2 files changed +3
-1
lines changed 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ const typescript: PluginImpl<RPT2Options> = (options) =>
86
86
{
87
87
check : true ,
88
88
verbosity : VerbosityLevel . Warning ,
89
- clean : true ,
89
+ clean : ! options ?. extraCacheKeys && ( options ?. sourceMapCallback || options ?. transformers ) ,
90
90
cacheRoot : findCacheDir ( { name : "rollup-plugin-typescript2" } ) ,
91
91
include : [ "*.ts+(|x)" , "**/*.ts+(|x)" ] ,
92
92
exclude : [ "*.d.ts" , "**/*.d.ts" ] ,
@@ -99,6 +99,7 @@ const typescript: PluginImpl<RPT2Options> = (options) =>
99
99
tsconfigDefaults : { } ,
100
100
objectHashIgnoreUnknownHack : false ,
101
101
cwd : process . cwd ( ) ,
102
+ extraCacheKeys : [ ]
102
103
} , options as IOptions ) ;
103
104
104
105
if ( ! pluginOptions . typescript ) {
Original file line number Diff line number Diff line change @@ -30,4 +30,5 @@ export interface IOptions
30
30
tsconfigDefaults : any ;
31
31
sourceMapCallback : ( id : string , map : string ) => void ;
32
32
objectHashIgnoreUnknownHack : boolean ;
33
+ extraCacheKeys : string [ ]
33
34
}
You can’t perform that action at this time.
0 commit comments