Skip to content

Commit

Permalink
Fix bug where overrides didn't work well with dev-libs.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Apr 21, 2020
1 parent 757322f commit a1b9c33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/dev-lib-overrides.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { h, Component } from "preact";

export default class DevLibOverrides extends Component {
componentDidMount() {
window.importMapOverrides.getDefaultMap().then(addDevLibOverrides);
window.importMapOverrides.getCurrentPageMap().then(addDevLibOverrides);
}
render() {
return null;
Expand Down
4 changes: 3 additions & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"react": "https://cdn.jsdelivr.net/npm/[email protected]/umd/react.production.min.js",
"react-dom": "https://cdn.jsdelivr.net/npm/[email protected]/umd/react-dom.production.min.js",
"single-spa": "https://cdn.jsdelivr.net/npm/[email protected]/lib/system/single-spa.min.js",
"rxjs": "https://cdn.jsdelivr.net/npm/@esm-bundle/rxjs/system/rxjs.min.js"
"rxjs": "https://cdn.jsdelivr.net/npm/@esm-bundle/rxjs/system/rxjs.min.js",
"rxjs/operators": "https://cdn.jsdelivr.net/npm/@esm-bundle/rxjs/system/rxjs-operators.min.js",
"@angular/core": "https://cdn.jsdelivr.net/npm/@esm-bundle/angular-core/esm/es2015/angular-core.min.js"
}
}
</script>
Expand Down

0 comments on commit a1b9c33

Please sign in to comment.