Skip to content

Commit

Permalink
Merge pull request #125 from benmosher/bugfix/frozen-jsx
Browse files Browse the repository at this point in the history
don't mutate settings
  • Loading branch information
benmosher committed Nov 25, 2015
2 parents 4427621 + c87b4af commit 2028c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function parse(path, { settings = {}, ecmaFeatures = {} } = {}) {
const { jsx } = ecmaFeatures
if (jsx && (!options.plugins || options.plugins.indexOf('jsx') < 0)) {
if (!options.plugins) options.plugins = ['jsx']
else options.plugins.push('jsx')
else options.plugins = options.plugins.concat('jsx')
}
}

Expand Down

0 comments on commit 2028c45

Please sign in to comment.