From 9408a4f869fab2c37b4cb24a836d4564bd36c2ba Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 6 Jul 2017 17:41:34 +0200 Subject: [PATCH] Add cacheKey() methods to template transforms --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 1bba2df0..96698b5f 100644 --- a/index.js +++ b/index.js @@ -33,7 +33,8 @@ module.exports = { registry.add('htmlbars-ast-plugin', { name: 'strip-test-selectors', plugin: StripTestSelectorsTransform, - baseDir() { return __dirname; } + baseDir() { return __dirname; }, + cacheKey() { return 'strip-test-selectors'; }, }); } else { let TransformTestSelectorParamsToHashPairs = require('./transform-test-selector-params-to-hash-pairs'); @@ -41,7 +42,8 @@ module.exports = { registry.add('htmlbars-ast-plugin', { name: 'transform-test-selector-params-to-hash-pairs', plugin: TransformTestSelectorParamsToHashPairs, - baseDir() { return __dirname; } + baseDir() { return __dirname; }, + cacheKey() { return 'transform-test-selector-params-to-hash-pairs'; }, }); } },