Created
February 9, 2020 18:51
-
-
Save darwin/f9e883eef4629d462edc871b6830a4d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/shadow/build/output.clj b/src/main/shadow/build/output.clj | |
index 7218596c..481287d0 100644 | |
--- a/src/main/shadow/build/output.clj | |
+++ b/src/main/shadow/build/output.clj | |
@@ -185,8 +185,11 @@ | |
(let [sm-suffix | |
(get-in state [:compiler-options :source-map-suffix] ".map") | |
+ sm-prefix | |
+ (get-in state [:compiler-options :source-map-prefix] "") | |
+ | |
sm-text | |
- (str "\n//# sourceMappingURL=" output-name sm-suffix "\n") | |
+ (str "\n//# sourceMappingURL=" sm-prefix output-name sm-suffix "\n") | |
src-map-file | |
(io/file (str (.getAbsolutePath js-file) sm-suffix)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment