kibana/packages/kbn-peggy-loader
Gerard Soldevila 6a7c904f92
SKA: Relocate "platform" packages that remain on /packages (#208704)
## Summary

The `/packages` folder at the root of the Kibana repository used to
contain a lot of packages.
In the context of SKA, they have been gradually moved to various
locations:
* `src/platform/packages`
* `x-pack/platform/packages`
* `src/core/packages`

Currently, only `devOnly: true` packages are left in this folder. This
comprises libraries for CLI scripts as well as testing utilities.

With this PR, we are moving ~half of these packages under
`src/platform/packages/(private|shared)/`.
In particular, we are moving those packages that are being used from
platform and/or solutions.

Since they are `"devOnly": true`, this means they are ONLY used from
tests, cypress tests, storybook configs, ./scripts/ folders inside some
modules, or other non-prod-time logic. Nonetheless, they are effectively
referenced from platform and/or solutions code, hence I decided they
should be placed under `platform` folders.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-02-24 11:03:30 +00:00
..
BUILD.bazel SKA: Relocate "platform" packages that remain on /packages (#208704) 2025-02-24 11:03:30 +00:00
index.js chore(NA): upgrade to webpack 5 (#191106) 2025-02-14 03:01:36 +00:00
jest.config.js Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc
package.json Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
README.mdx
tsconfig.json chore(NA): upgrade to webpack 5 (#191106) 2025-02-14 03:01:36 +00:00

---
id: kibDevDocsOpsPeggyLoader
slug: /kibana-dev-docs/ops/peggy-loader
title: "@kbn/peggy"
description: A package which wraps @kbn/peggy for use in Webpack
date: 2022-05-18
tags: ['kibana', 'dev', 'contributor', 'operations', 'peggy', 'loader']
---

This package wraps the <DocLink id="kibDevDocsOpsPeggy" /> package so that webpack can consume it via its loader interface. This loader, like the `@kbn/peggy` package, loads config files next to grammar files for configuring the peggy parser-generator.