diff --git a/packages/compat/src/compat-app-builder.ts b/packages/compat/src/compat-app-builder.ts index c905b7d8f..cc92ad0c8 100644 --- a/packages/compat/src/compat-app-builder.ts +++ b/packages/compat/src/compat-app-builder.ts @@ -51,6 +51,7 @@ export class CompatAppBuilder { podModulePrefix: this.podModulePrefix(), splitAtRoutes: this.options.splitAtRoutes, staticAppPaths: this.options.staticAppPaths, + amdCompatibility: this.options.amdCompatibility, 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 c118b1d39..25f05d13b 100644 --- a/packages/core/src/module-resolver-options.ts +++ b/packages/core/src/module-resolver-options.ts @@ -62,7 +62,7 @@ export function buildResolverOptions(inputs: { resolvableExtensions: resolvableExtensions(), appRoot: appPackage.root, engines, - amdCompatibility: { + amdCompatibility: inputs.amdCompatibility ?? { es: [], }, modulePrefix,