Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 91faf0b

Browse files
adamdbradleydanbucholtz
authored andcommitted
fix(sass): remove broken sass caching
1 parent 87f7648 commit 91faf0b

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/sass.ts

-21
Original file line numberDiff line numberDiff line change
@@ -226,15 +226,6 @@ function getComponentDirectories(moduleDirectories: string[], sassConfig: SassCo
226226
function 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-
450429
const taskInfo: TaskInfo = {
451430
fullArg: '--sass',
452431
shortArg: '-s',

0 commit comments

Comments
 (0)