Files
meteor/packages/caching-compiler/package.js
Ben Newman cb77875f38 Generate MultiFileCachingCompiler .cache filenames based on getCacheKey. (#9564)
Previously, .cache filenames were simply a hash of the absolute path of
the inputFile, which allowed for cache collisions (on disk) between the
same file compiled for different architectures (web.browser, os.*, ...).
Now, the .cache filenames are generated based on whatever information the
compiler plugin deems uniquely identifying about the input file: whatever
is returned from getCacheKey, plus the absolute path of the file.
2018-01-22 17:17:51 -05:00

19 lines
478 B
JavaScript

Package.describe({
name: 'caching-compiler',
version: '1.1.11',
summary: 'An easy way to make compiler plugins cache',
documentation: 'README.md'
});
Npm.depends({
'lru-cache': '2.6.4',
'async': '1.4.0'
});
Package.onUse(function(api) {
api.use(['ecmascript', 'random']);
api.addFiles(['caching-compiler.js'], 'server');
api.addFiles(['multi-file-caching-compiler.js'], 'server');
api.export(['CachingCompiler', 'MultiFileCachingCompiler'], 'server');
});