We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2da2ddb commit 33f5deeCopy full SHA for 33f5dee
src/index.js
@@ -49,6 +49,10 @@ export function target(target) {
49
}
50
51
export function transform(source, options = {}) {
52
+ // We clone the options object because we mutate it later on. If we don't, then
53
+ // issues crop up if the caller re-uses the same options object between calls
54
+ // to this function.
55
+ options = Object.assign({}, options);
56
let ast;
57
let jsx = null;
58
0 commit comments