adobe / adobe/aem-react-core-wcm-components-base

Entrypoints are imported via /dist path

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
22
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Currently when you want to import an individual entrypoint of the library, for example TextV2:

`import {TextV2} from "@adobe/aem-core-components-react-base/dist/authoring/text/v2/TextV2";
`
What we would like is to have it as follows instead:

`import {TextV2} from "@adobe/aem-core-components-react-base/authoring/text/v2/TextV2";
`

This looks nicer and makes more sense logically. For this we need to change the way we export to NPM.

Contributor guide

Open the contributing guide

Research direction

Start with the package's NPM export configuration and the TextV2 entrypoint shown in the issue. Verify that TextV2 can be imported without the /dist segment, and confirm that the existing entrypoint remains usable after the export change.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.