Skip to content

Commit

Permalink
fix: Module Resolution Errors for ScriptManager Imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsasuu committed Dec 20, 2024
1 parent 58103c5 commit 6c25723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type * as RepackClient from '../ScriptManager/index.js';
const RepackCorePlugin: () => FederationRuntimePlugin = () => ({
name: 'repack-core-plugin',
loadEntry: async ({ remoteInfo }) => {
const client = require('../ScriptManager.js') as typeof RepackClient;
const client = require('../ScriptManager/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.js') as typeof RepackClient;
require('../ScriptManager/ScriptManager.js') as typeof RepackClient;
const { remoteInfo } = args;

ScriptManager.shared.addResolver(
Expand Down

0 comments on commit 6c25723

Please sign in to comment.