Skip to content

Commit

Permalink
config: always use iframely config; use spread to merge objects
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Nov 12, 2021
1 parent 0b0b8a0 commit 0aff940
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.loader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import iframelyConfig from './config.js';
// Load global config from exec dir, because `iframely` can be used as library.
var globalConfig = await import(process.cwd() + '/config.js');
globalConfig = globalConfig && globalConfig.default;
export default globalConfig;
export default {...iframelyConfig, ...globalConfig};

0 comments on commit 0aff940

Please sign in to comment.