Skip to content

Commit

Permalink
fix: call admin.watch after AdminJS initialization (#61)
Browse files Browse the repository at this point in the history
Otherwise components added via ComponentLoader won't get bundled in development.
  • Loading branch information
tomups authored Nov 21, 2023
1 parent 9fff69f commit df2ef2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/admin.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export class AdminModule implements OnModuleInit {
: this.adminModuleOptions.adminJsOptions

const admin = new AdminJS(adminJSOptions);
admin.watch();

const { httpAdapter } = this.httpAdapterHost;
this.loader.register(admin, httpAdapter, {
Expand Down

0 comments on commit df2ef2a

Please sign in to comment.