Don't use snapshots in Task

They are not providing much value, as we are not already loading
anything from the snapshot require cache.
This commit is contained in:
Antonio Scandurra
2017-05-11 16:46:37 +02:00
parent 9346ff9e63
commit b1466742d4

View File

@@ -70,10 +70,6 @@ class Task
compileCachePath = require('./compile-cache').getCacheDirectory()
taskBootstrapRequire = "require('#{require.resolve('./task-bootstrap')}');"
bootstrap = """
if (typeof snapshotResult !== 'undefined') {
snapshotResult.setGlobals(global, process, global, {}, console, require)
}
CompileCache = #{compileCacheRequire}
CompileCache.setCacheDirectory('#{compileCachePath}');
CompileCache.install("#{process.resourcesPath}", require)