Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addresses strange behavior found investigating avajs#674
Since `babelConfig` in the CachingPrecompiler.prototype._factory method was a JavaScript object coming from an external source, the .push was altering the array in place. objectAssign is shallow so the plugins were being mutated, ensuring that AVA's required plugins were continually apending for each file loaded and parsed. Using .concat ensures the original plugins array is not mutated and thus doesn't collect plugins like a hoarder.
- Loading branch information