Skip to content

Commit

Permalink
fix: fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Nov 26, 2020
1 parent 71af6df commit 820017e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ export const loadConfiguration = (
optionsFileNames.includes(file.toLowerCase()),
);
if (buildConfigFile) {
const buildPagth = path.resolve(configPath, buildConfigFile);
let config = require('esm')(module)(buildPagth);
const buildPath = path.resolve(configPath, buildConfigFile);
let config = require('esm')(module)(buildPath);
if (
!config ||
(typeof config === 'object' && Object.keys(config).length === 0)
) {
config = require(buildPagth);
config = require(buildPath);
}
return {
config: config.default || config,
Expand Down

0 comments on commit 820017e

Please sign in to comment.