diff --git a/packages/compat/src/compat-app-builder.ts b/packages/compat/src/compat-app-builder.ts index 7589c4628..66e4a59c7 100644 --- a/packages/compat/src/compat-app-builder.ts +++ b/packages/compat/src/compat-app-builder.ts @@ -396,7 +396,15 @@ export class CompatAppBuilder { private impliedAddonAssets(type: keyof ImplicitAssetPaths, { engine }: AppFiles): string[] { let result: Array = []; - for (let addon of sortBy(Array.from(engine.addons), this.scriptPriority.bind(this))) { + let addons: Array = sortBy(Array.from(engine.addons), this.scriptPriority.bind(this)); + if (type === 'implicit-styles') { + const synthesizedVendor = addons.find(pkg => pkg.name === '@embroider/synthesized-vendor'); + if (synthesizedVendor) { + addons = sortBy(addons, pkg => pkg.name).filter(pkg => pkg !== synthesizedVendor); + addons.unshift(synthesizedVendor); + } + } + for (let addon of addons) { let implicitScripts = addon.meta[type]; if (implicitScripts) { let styles = [];