From 578836bb47b5586d6964e359a08054552cd0e8c8 Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Sun, 15 Sep 2024 11:27:29 +0200 Subject: [PATCH] fix --- packages/core/src/virtual-content.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/virtual-content.ts b/packages/core/src/virtual-content.ts index 8ba4244eb..a9bf22d42 100644 --- a/packages/core/src/virtual-content.ts +++ b/packages/core/src/virtual-content.ts @@ -218,8 +218,8 @@ function decodeVirtualPairComponent( const appJsMatchMarker = '__embroider_appjs_match__'; const appJsMatchPattern = /(?.+)__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)}`;