This repository was archived by the owner on May 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 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
226226function render ( context : BuildContext , sassConfig : SassConfig ) : Promise < string > {
227227 return new Promise ( ( resolve , reject ) => {
228228
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-
238229 sassConfig . omitSourceMapUrl = true ;
239230
240231 if ( sassConfig . sourceMap ) {
@@ -253,7 +244,6 @@ function render(context: BuildContext, sassConfig: SassConfig): Promise<string>
253244 } else {
254245 // sass render success :)
255246 renderSassSuccess ( context , sassResult , sassConfig ) . then ( outFile => {
256- lastRenderKey = getRenderCacheKey ( sassConfig ) ;
257247 resolve ( outFile ) ;
258248
259249 } ) . catch ( err => {
@@ -436,17 +426,6 @@ function defaultSortComponentFilesFn(a: any, b: any): number {
436426}
437427
438428
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-
450429const taskInfo : TaskInfo = {
451430 fullArg : '--sass' ,
452431 shortArg : '-s' ,
You can’t perform that action at this time.
0 commit comments