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,