File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11export async function loadRoutes ( ) {
22 try {
33 // This package exists only in your private deployment
4+ /*eslint no-undef: 0*/
45 const mod = require ( "ocl-analytics-web" ) ;
56
67 // Expect the private package to export PremiumRoutes (recommended)
@@ -17,7 +18,9 @@ export async function loadUsageDashboard() {
1718 try {
1819 // webpack won't try to resolve this at build time
1920 // eslint-disable-next-line global-require, import/no-unresolved
21+ /*eslint no-undef: 0*/
2022 const mod = require ( "ocl-analytics-web" ) ;
23+ /*eslint no-console: 0*/
2124 console . log ( "ocl-analytics-web keys:" , Object . keys ( mod ) ) ;
2225 return mod . UsageDashboard || mod . default || null ;
2326 } catch ( e ) {
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ const App = props => {
130130 React . useEffect ( ( ) => {
131131 loadUsageDashboard ( ) . then ( setUsageDashboard ) ;
132132 } , [ ] ) ;
133+ /*eslint no-console: 0*/
133134 console . log ( "UsageDashboard:" , UsageDashboard )
134135
135136
You can’t perform that action at this time.
0 commit comments