Skip to content

Commit

Permalink
Fix override check (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
iansu authored and loganfsmyth committed Sep 27, 2018
1 parent 800181b commit 2ce62c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -76,7 +76,7 @@ async function loader(source, inputSourceMap, overrides) {
let override = require(loaderOptions.customize);
if (override.__esModule) override = override.default;

if (typeof override === "function") {
if (typeof override !== "function") {
throw new Error("Custom overrides must be functions.");
}
overrides = override(babel);
Expand Down

0 comments on commit 2ce62c7

Please sign in to comment.