Add SHA-1 based CoffeeScript compile cache

This restores the require cache that was used pre-node integration
This commit is contained in:
Kevin Sawicki
2013-09-08 12:58:19 +01:00
parent e10f06e48f
commit bc76b70552
7 changed files with 29 additions and 7 deletions

View File

@@ -45,7 +45,7 @@ class Task
constructor: (taskPath) ->
bootstrap = """
require('coffee-script');
require('coffee-cache').setCacheDir('/tmp/atom-coffee-cache');
require('coffee-cache');
Object.defineProperty(require.extensions, '.coffee', {
writable: false,
value: require.extensions['.coffee']