Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Sep 15, 2024
1 parent a605ed3 commit 578836b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/virtual-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ function decodeVirtualPairComponent(

const appJsMatchMarker = '__embroider_appjs_match__';
const appJsMatchPattern = /(?<to>.+)__embroider_appjs_match__.{2,5}$/;
export function encodeAppJsMatch(specifier: string, fromFile: string): string {
let to = require.resolve(to, {
export function encodeAppJsMatch(specifier: string, from: string): string {
let to = require.resolve(specifier, {
paths: [resolve(dirname(from), 'node_modules')],
}),
return `${to}${appJsMatchMarker}${extname(to)}`;
Expand Down

0 comments on commit 578836b

Please sign in to comment.