From 1685d62cae2060cca9b74d3fe8c7acc264ae625f Mon Sep 17 00:00:00 2001 From: Kevin Sawicki & Nathan Sobo Date: Mon, 22 Jul 2013 11:50:14 -0700 Subject: [PATCH] Don't allow caching of coffee requires to be overridden in tasks This is a follow-on to the previous commit which handled the index.html case. --- src/stdlib/task.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stdlib/task.coffee b/src/stdlib/task.coffee index 9a180168b..9fa452783 100644 --- a/src/stdlib/task.coffee +++ b/src/stdlib/task.coffee @@ -16,6 +16,10 @@ class Task bootstrap = """ require('coffee-script'); require('coffee-cache').setCacheDir('/tmp/atom-coffee-cache'); + Object.defineProperty(require.extensions, '.coffee', { + writable: false, + value: require.extensions['.coffee'] + }); require('task-bootstrap'); """