mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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.
19 lines
478 B
JavaScript
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');
|
|
});
|