electron-compile-cache
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -78,2 +78,8 @@ 'use strict'; | ||
// If the file already has a source map, that's a good indication that we | ||
// shouldn't compile it | ||
if (sourceCode && sourceCode.lastIndexOf('//# sourceMap') > sourceCode.lastIndexOf('\n')) { | ||
return false; | ||
} | ||
// NB: require() normally does this for us, but in our protocol hook we | ||
@@ -80,0 +86,0 @@ // need to do this ourselves |
{ | ||
"name": "electron-compile-cache", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "Base class for compilers in electron-compile, use this to implement your own compiler", | ||
@@ -5,0 +5,0 @@ "main": "lib/compile-cache.js", |
@@ -42,2 +42,8 @@ import crypto from 'crypto'; | ||
// If the file already has a source map, that's a good indication that we | ||
// shouldn't compile it | ||
if (sourceCode && sourceCode.lastIndexOf('//# sourceMap') > sourceCode.lastIndexOf('\n')) { | ||
return false; | ||
} | ||
// NB: require() normally does this for us, but in our protocol hook we | ||
@@ -44,0 +50,0 @@ // need to do this ourselves |
16371
401