Skip to content

Commit

Permalink
πŸ—πŸ› Fix non-dist build of Bento extensions (#37665)
Browse files Browse the repository at this point in the history
Error:
```
/Users/alanorozco/git/amphtml/build-system/compile/bento-remap.js:112
    Object.entries(isMinified).map(([source, cdn]) => [
           ^

TypeError: Cannot convert undefined or null to object
```
  • Loading branch information
alanorozco committed Feb 14, 2022
1 parent 4944583 commit 5244199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-system/compile/bento-remap.js
Expand Up @@ -109,7 +109,7 @@ function getRemapBentoDependencies(isMinified) {
return remappings;
}
return Object.fromEntries(
Object.entries(isMinified).map(([source, cdn]) => [
Object.entries(remappings).map(([source, cdn]) => [
source,
cdn.replace('.mjs', '.max.mjs'),
])
Expand Down

0 comments on commit 5244199

Please sign in to comment.