Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Commit

Permalink
fix: properly pass require to config-loader (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape authored May 28, 2018
1 parent f64dfca commit acef1fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ function prepare(config) {

module.exports = {
load(options) {
const { compiler, config, require } = options;
const { compiler, config } = options;
const flags = options.flags || {};
const require = flags.require || options.require;

// if someone passed us a config Object, then just resolve that object
// we're only going to load the config from file when we're given a file
Expand Down

0 comments on commit acef1fb

Please sign in to comment.