Max Brunsfeld
d9410716d2
Don't attempt to use source maps w/ no cache directory
...
This error will only happen when the compile-cache file is compiled
twice, which seems to be happening on windows when running specs.
This doesn't fix that problem, but prevents further errors from
cascading in a confusing way.
2015-09-01 16:49:15 -07:00
Kevin Sawicki
56f40d7714
Append to existing cache dir value
2015-08-31 10:29:36 -07:00
Kevin Sawicki
8fa99a33be
Append root to atom home value
2015-08-31 10:23:14 -07:00
Max Brunsfeld
a4b9b9c6cd
👕 Use standard style for js code
2015-08-21 16:56:32 -07:00
Max Brunsfeld
f3778148a0
Catch errors when retrieving source maps
2015-08-21 15:37:36 -07:00
Max Brunsfeld
a18b7e2fa9
Don't make prepareStackTrace unwritable
...
This breaks other code (such as Grim) that may want to temporarily
use a different prepareStackTrace function.
2015-08-21 14:57:39 -07:00
Max Brunsfeld
a6fa098a8c
Add CompileCache spec
2015-08-21 14:47:32 -07:00
Max Brunsfeld
f8397661d1
Defer coffee-script require, prevent it from reassigning prepareStackTrace
2015-08-21 13:48:56 -07:00
Max Brunsfeld
b533aff8f4
🐎 Minimize dependencies loaded before the module-cache
2015-08-21 13:48:56 -07:00
Max Brunsfeld
bb69f1352d
🎨
2015-08-21 11:50:54 -07:00
Max Brunsfeld
408202729e
Add sourceURL comment to all compiled js files
2015-08-21 11:19:11 -07:00
Max Brunsfeld
8c5eed28d2
Don't use es6 features in compile-cache
...
APM requires it directly, and it uses an older version of node
2015-08-21 10:31:29 -07:00
Nathan Sobo
c0f3ca6dcd
Fix inline source map regex
...
Need to enable multi-line mode after all
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-08-20 16:08:03 -06:00
Nathan Sobo
61ef1da815
🎨
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-08-20 16:07:37 -06:00
Max Brunsfeld
973c2a6a18
Don't match newlines when finding source-map data
2015-08-20 11:58:46 -07:00
Max Brunsfeld
49e37f5410
Use source-map-support to handle stack trace conversion
...
Previously, our Error.convertStackTrace function was provided by coffeestack,
which only works for coffee-script. This adds a dependency on 'source-map-support',
which works for any source file with inline source maps.
This also refactors the code for registering our compilers (coffee-script,
typescript, and babel) so that caching logic is shared.
2015-08-19 17:55:29 -07:00