Skip to content

Commit

Permalink
change import ordino in phovea_registry
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdanielamoitzi committed Jan 19, 2024
1 parent 0fd0fec commit e1be7a6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/phovea_registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,16 @@ import reg from './phovea';
* build a registry by registering all phovea modules
*/
/// #if include('ordino')
import 'ordino/dist/phovea_registry';
import 'tdp_core/dist/phovea_registry';

try {
// As ordino is an optional dependency, we can't import it directly: https://github.com/webpack/webpack/issues/15957
// eslint-disable-next-line global-require, @typescript-eslint/no-var-requires
require('ordino/phovea_registry');
} catch (e) {
console.error("Failed to load 'visyn_pro/phovea_registry'", e);
}

/// #endif
// self
PluginRegistry.getInstance().register('tdp_publicdb', reg);

0 comments on commit e1be7a6

Please sign in to comment.