Skip to content

Commit

Permalink
Remove CommonJSLoader bug workaround
Browse files Browse the repository at this point in the history
Signed-off-by: David Festal <[email protected]>
  • Loading branch information
davidfestal committed Jan 23, 2024
1 parent 2e6adaa commit c6c380d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 63 deletions.
7 changes: 0 additions & 7 deletions packages/backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@ import {
gatherDynamicPluginsSchemas,
} from './schemas';

// TODO(davidfestal): The following import is a temporary workaround for a bug
// in the upstream @backstage/backend-dynamic-feature-service package.
//
// It should be removed as soon as the upstream package is fixed and released.
// see https://github.com/janus-idp/backstage-showcase/pull/600
import { WinstonLogger } from '@backstage/backend-app-api';
import { CommonJSModuleLoader } from './loader/CommonJSModuleLoader';

function makeCreateEnv(config: Config, pluginProvider: BackendPluginProvider) {
const root = getRootLogger();
Expand Down Expand Up @@ -143,7 +137,6 @@ async function main() {
const pluginManager = await DynamicPluginManager.create({
config,
logger,
moduleLoader: new CommonJSModuleLoader(logger),
});

const dynamicPluginsSchemas = await gatherDynamicPluginsSchemas(
Expand Down
56 changes: 0 additions & 56 deletions packages/backend/src/loader/CommonJSModuleLoader.ts

This file was deleted.

0 comments on commit c6c380d

Please sign in to comment.