# @oracle/oraclejet-core-pack ESM Distribution

Oracle JET custom web components built using Preact and the JET VComponent API.

## Status

This ESM distribution is intended for internal use. It is currently meant for internal consumers such as Playwright and Vitest based testing flows, and should not yet be treated as the general-purpose published replacement for the AMD distribution.

## Contents

- Native ESM component modules under `components/oj-c`
- Co-located CSS assets referenced by the emitted modules
- `component.json` files for generated VComponent metadata
- Internal runtime shim files under `components/_internal`


## Limitations

- Runtime dependencies are not bundled. The consuming application or test harness must provide ESM-safe resolution for dependencies such as `@oracle/oraclejet-preact` and `ojs/*`.
- No WebDriver adapter files are generated in this distribution.
- No generated TypeScript declaration files are currently emitted for the ESM output.
- No API documentation or other generated doc artifacts are emitted.
- The output is module-preserving and not minified.
- The `ojconfig` compatibility shim only covers the core-pack ESM build's own use of `ojs/ojconfig`.

## Usage

Local development builds write to `web-esm` at the core-pack package root.

When the standard core-pack packaging flow runs, this ESM distribution is staged into the packaged artifact under `esm/components` relative to the package root.

Packaged consumers should import from:

- `@oracle/oraclejet-core-pack/esm/*`

This distribution follows the same general dependency model as the AMD distribution: component modules are shipped, but the consuming app remains responsible for supplying the required JET and related runtime dependencies.
