Skip to content

Commit

Permalink
Merge pull request #69 from botandrose/green-ci
Browse files Browse the repository at this point in the history
Get CI green, fix config deep merging bug
  • Loading branch information
1cg authored Dec 11, 2024
2 parents b5f1231 + 5a8ee48 commit f57b953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"module": "dist/idiomorph.esm.js",
"unpkg": "dist/idiomorph.min.js",
"scripts": {
"test": "mocha-chrome test/index.html",
"test": "mocha-chrome test/index.html --chrome-flags '[\"--allow-file-access-from-files\"]'",
"amd": "(echo \"define(() => {\n\" && cat src/idiomorph.js && echo \"\nreturn Idiomorph});\") > dist/idiomorph.amd.js",
"cjs": "(cat src/idiomorph.js && echo \"\nmodule.exports = Idiomorph;\") > dist/idiomorph.cjs.js",
"esm": "(cat src/idiomorph.js && echo \"\nexport {Idiomorph};\") > dist/idiomorph.esm.js",
Expand Down
4 changes: 2 additions & 2 deletions src/idiomorph.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,10 @@ var Idiomorph = (function () {
Object.assign(finalConfig, config);

// copy callbacks into final config (do this to deep merge the callbacks)
Object.assign(finalConfig.callbacks, config.callbacks);
finalConfig.callbacks = Object.assign({}, defaults.callbacks, config.callbacks);

// copy head config into final config (do this to deep merge the head)
Object.assign(finalConfig.head, config.head);
finalConfig.head = Object.assign({}, defaults.head, config.head);

return finalConfig;
}
Expand Down

0 comments on commit f57b953

Please sign in to comment.