Skip to content

Commit

Permalink
set ismorphic loader extend-require log level to error
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Sep 29, 2020
1 parent 47af958 commit e4db4a3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/xarc-app-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"fs-extra": "^9.0.1",
"identity-obj-proxy": "^3.0.0",
"is-ci": "^2.0.0",
"isomorphic-loader": "^3.1.0",
"isomorphic-loader": "^3.2.0",
"lodash": "^4.17.19",
"log-update": "^4.0.0",
"mime": "^2.4.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/xarc-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@babel/runtime": "^7.8.3",
"css-modules-require-hook": "^4.0.2",
"ignore-styles": "^5.0.1",
"isomorphic-loader": "^3.1.0",
"isomorphic-loader": "^3.2.0",
"optional-require": "^1.0.0",
"subapp-util": "^1.1.1"
},
Expand Down
10 changes: 7 additions & 3 deletions packages/xarc-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ export function isomorphicExtendRequire() {

return assets;
}
}).catch((err: Error) => {
isoExtRequire._instance.interceptLoad();
});
})
.then(() => {
isoExtRequire.setLogLevel("error");
})
.catch((err: Error) => {
isoExtRequire._instance.interceptLoad();
});
}

/**
Expand Down

0 comments on commit e4db4a3

Please sign in to comment.