Skip to content

Commit

Permalink
Merge pull request #742 from rwjblue/avoid-caching-warnings-under-emb…
Browse files Browse the repository at this point in the history
…roider

Fix caching warnings when running under Embroider
  • Loading branch information
Turbo87 authored Jun 24, 2021
2 parents cee9c6a + 696fa5b commit a9eb4b1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ module.exports = {
return {
name: 'strip-test-selectors',
plugin: StripTestSelectorsTransform,
baseDir() { return __dirname; },
cacheKey() { return 'strip-test-selectors'; },
baseDir: StripTestSelectorsTransform.baseDir,
cacheKey: StripTestSelectorsTransform.cacheKey,
};
},

Expand All @@ -123,8 +123,8 @@ module.exports = {
return {
name: 'transform-test-selector-params-to-hash-pairs',
plugin: TransformTestSelectorParamsToHashPairs,
baseDir() { return __dirname; },
cacheKey() { return 'transform-test-selector-params-to-hash-pairs'; },
baseDir: TransformTestSelectorParamsToHashPairs.baseDir,
cacheKey: TransformTestSelectorParamsToHashPairs.cacheKey,
};
},
};
8 changes: 8 additions & 0 deletions strip-test-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ module.exports = function() {
}
};
};

module.exports.baseDir = function() {
return __dirname;
};

module.exports.cacheKey = function() {
return 'strip-test-selectors';
};
8 changes: 8 additions & 0 deletions transform-test-selector-params-to-hash-pairs.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,11 @@ module.exports = function(env) {
},
};
};

module.exports.baseDir = function() {
return __dirname;
};

module.exports.cacheKey = function() {
return 'transform-test-selector-params-to-hash-pairs';
};

0 comments on commit a9eb4b1

Please sign in to comment.