Skip to content

Commit

Permalink
Revert "fix: Module Resolution Errors for ScriptManager Imports (#833)…
Browse files Browse the repository at this point in the history
…" (#834)

This reverts commit 860553b.
  • Loading branch information
jbroma authored Dec 20, 2024
1 parent 860553b commit a349bca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .changeset/quiet-camels-design.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import type * as RepackClient from '../ScriptManager/index.js';
const RepackCorePlugin: () => FederationRuntimePlugin = () => ({
name: 'repack-core-plugin',
loadEntry: async ({ remoteInfo }) => {
const client =
require('../ScriptManager/ScriptManager.js') as typeof RepackClient;
const client = require('../ScriptManager.js') as typeof RepackClient;
const { ScriptManager, getWebpackContext } = client;
const { entry, entryGlobalName } = remoteInfo;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const RepackResolverPlugin: (
name: 'repack-resolver-plugin',
afterResolve(args) {
const { ScriptManager } =
require('../ScriptManager/ScriptManager.js') as typeof RepackClient;
require('../ScriptManager.js') as typeof RepackClient;
const { remoteInfo } = args;

ScriptManager.shared.addResolver(
Expand Down

0 comments on commit a349bca

Please sign in to comment.