From 4b138406a943ddd1566692e817213f1edb541db4 Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Wed, 11 Sep 2024 16:57:44 +0100 Subject: [PATCH] was missing staticAppPaths --- packages/compat/src/compat-app-builder.ts | 1 + packages/core/src/module-resolver-options.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/compat/src/compat-app-builder.ts b/packages/compat/src/compat-app-builder.ts index 4c282b6e8..c905b7d8f 100644 --- a/packages/compat/src/compat-app-builder.ts +++ b/packages/compat/src/compat-app-builder.ts @@ -50,6 +50,7 @@ export class CompatAppBuilder { modulePrefix: this.modulePrefix(), podModulePrefix: this.podModulePrefix(), splitAtRoutes: this.options.splitAtRoutes, + staticAppPaths: this.options.staticAppPaths, extraDeps: new Map([[this.appPackageWithMovedDeps.root, [this.synthVendor, this.synthStyles] as AddonPackage[]]]), extend: (options: CompatResolverOptions, allActiveAddons) => { options.activePackageRules = activePackageRules(this.options.packageRules.concat(defaultAddonPackageRules()), [ diff --git a/packages/core/src/module-resolver-options.ts b/packages/core/src/module-resolver-options.ts index b2b649a88..c118b1d39 100644 --- a/packages/core/src/module-resolver-options.ts +++ b/packages/core/src/module-resolver-options.ts @@ -37,6 +37,7 @@ export function buildResolverOptions(inputs: { modulePrefix?: string; podModulePrefix?: string; splitAtRoutes?: (RegExp | string)[]; + staticAppPaths?: string[]; extend?: (opts: T, allActiveAddons: AddonPackage[]) => T; }): T { let appPackage: Package; @@ -65,7 +66,7 @@ export function buildResolverOptions(inputs: { es: [], }, modulePrefix, - staticAppPaths: [], + staticAppPaths: inputs.staticAppPaths ?? [], emberVersion: appPackage.dependencies.find(d => d.name === 'ember-source')!.version, splitAtRoutes: inputs.splitAtRoutes, podModulePrefix: inputs.podModulePrefix,