Permalink
Browse files

Updated the sourceMap to be wrapped as a string on the .join() method

  • Loading branch information...
1 parent 2af7224 commit 108fa2bef64c1c5bacd5e0111a975251a00226b5 @tysoncadenhead tysoncadenhead committed Mar 21, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/uglify.js
  2. +2 −2 src/uglify.js
View
@@ -191,10 +191,10 @@ module.exports = function( _, anvil ) {
// Is there a sourcemap in the config that matches the current file.
sourceMapExists = self.sourceMaps[ path.join( file.relativePath, file.name ) ],
// The actual destination of the sourceMap
- sourceMapDestination = sourceMapExists === true ? fileForSourceMap + ".map" : path.join( output, sourceMapExists ),
+ sourceMapDestination = sourceMapExists === true ? fileForSourceMap + ".map" : path.join( output, String(sourceMapExists) ),
// The actual destination of the sourceMap
sourceMapActualDestination = sourceMapExists === true ? path.join( anvil.config.working, file.relativePath, file.name ) + ".map"
- : path.join( anvil.config.working, sourceMapExists ),
+ : path.join( anvil.config.working, String(sourceMapExists) ),
// Options to pass to uglify.
uglifyOpts = _.extend({}, this.uglifyOptions, sourceMapExists ? {
outSourceMap: sourceMapDestination
View
@@ -182,10 +182,10 @@ module.exports = function( _, anvil ) {
// Is there a sourcemap in the config that matches the current file.
sourceMapExists = self.sourceMaps[ path.join( file.relativePath, file.name ) ],
// The actual destination of the sourceMap
- sourceMapDestination = sourceMapExists === true ? fileForSourceMap + ".map" : path.join( output, sourceMapExists ),
+ sourceMapDestination = sourceMapExists === true ? fileForSourceMap + ".map" : path.join( output, String(sourceMapExists) ),
// The actual destination of the sourceMap
sourceMapActualDestination = sourceMapExists === true ? path.join( anvil.config.working, file.relativePath, file.name ) + ".map"
- : path.join( anvil.config.working, sourceMapExists ),
+ : path.join( anvil.config.working, String(sourceMapExists) ),
// Options to pass to uglify.
uglifyOpts = _.extend({}, this.uglifyOptions, sourceMapExists ? {
outSourceMap: sourceMapDestination

0 comments on commit 108fa2b

Please sign in to comment.