This repository was archived by the owner on May 1, 2020. It is now read-only.
File tree 1 file changed +0
-21
lines changed
1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -226,15 +226,6 @@ function getComponentDirectories(moduleDirectories: string[], sassConfig: SassCo
226
226
function render ( context : BuildContext , sassConfig : SassConfig ) : Promise < string > {
227
227
return new Promise ( ( resolve , reject ) => {
228
228
229
- if ( lastRenderKey !== null ) {
230
- // if the sass data imports are same, don't bother
231
- const renderKey = getRenderCacheKey ( sassConfig ) ;
232
- if ( renderKey === lastRenderKey ) {
233
- resolve ( sassConfig . outFile ) ;
234
- return ;
235
- }
236
- }
237
-
238
229
sassConfig . omitSourceMapUrl = true ;
239
230
240
231
if ( sassConfig . sourceMap ) {
@@ -253,7 +244,6 @@ function render(context: BuildContext, sassConfig: SassConfig): Promise<string>
253
244
} else {
254
245
// sass render success :)
255
246
renderSassSuccess ( context , sassResult , sassConfig ) . then ( outFile => {
256
- lastRenderKey = getRenderCacheKey ( sassConfig ) ;
257
247
resolve ( outFile ) ;
258
248
259
249
} ) . catch ( err => {
@@ -436,17 +426,6 @@ function defaultSortComponentFilesFn(a: any, b: any): number {
436
426
}
437
427
438
428
439
- function getRenderCacheKey ( sassConfig : SassConfig ) {
440
- return [
441
- sassConfig . data ,
442
- sassConfig . file ,
443
- ] . join ( '|' ) ;
444
- }
445
-
446
-
447
- let lastRenderKey : string = null ;
448
-
449
-
450
429
const taskInfo : TaskInfo = {
451
430
fullArg : '--sass' ,
452
431
shortArg : '-s' ,
You can’t perform that action at this time.
0 commit comments