Skip to content

Commit 464f44f

Browse files
committed
Add support for source maps in the loader
Closes javascript-obfuscator#111
1 parent f214a34 commit 464f44f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loader/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function Loader (sourceCode: string) {
3434
}
3535
);
3636

37-
return obfuscationResult.getObfuscatedCode();
37+
context.callback(null, obfuscationResult.getObfuscatedCode(), obfuscationResult.getSourceMap());
3838
}
3939

4040
export = Loader;

0 commit comments

Comments
 (0)