diff --git a/packages/kbn-optimizer/src/optimizer/optimizer_config.ts b/packages/kbn-optimizer/src/optimizer/optimizer_config.ts index fbeaf8b5014f6..378db32763d92 100644 --- a/packages/kbn-optimizer/src/optimizer/optimizer_config.ts +++ b/packages/kbn-optimizer/src/optimizer/optimizer_config.ts @@ -209,8 +209,8 @@ export class OptimizerConfig { type: 'entry', id: 'core', sourceRoot: options.repoRoot, - contextDir: Path.resolve(options.repoRoot, 'src/core'), - outputDir: Path.resolve(options.outputRoot, 'src/core/target/public'), + contextDir: Path.resolve(options.repoRoot, 'src/core/packages/core'), + outputDir: Path.resolve(options.outputRoot, 'src/core/packages/core/target/public'), pageLoadAssetSizeLimit: limits.pageLoadAssetSize?.core, remoteInfo: { pkgId: '@kbn/core',