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

fix: properly pass require to config-loader #153

Merged
merged 1 commit into from
May 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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