Skip to content

[LiveComponent] Document getComponent install with AssetMapper #1406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

smnandre
Copy link
Member

Add document suggested by @weaverryan about getComponent / AssetMapper

@weaverryan
Copy link
Member

Can we just change package.json to:

"importmap": {
    "@hotwired/stimulus": "^3.0.0",
    "@symfony/ux-live-component": "path:%PACKAGE%/dist/live_controller.js"
}

Pasted from @smnandre sending this code to me in Slack 😆

@smnandre
Copy link
Member Author

smnandre commented Jan 30, 2024

Can we just change package.json to:

"importmap": {
    "@hotwired/stimulus": "^3.0.0",
    "@symfony/ux-live-component": "path:%PACKAGE%/dist/live_controller.js"
}

Pasted from @smnandre sending this code to me in Slack 😆

Closing this one, replaced by #1406

@smnandre smnandre closed this Jan 30, 2024
weaverryan added a commit that referenced this pull request Jan 30, 2024
…smnandre)

This PR was merged into the 2.x branch.

Discussion
----------

[LiveComponent] Update importmap conf in package.json

Replaces #1406

Allow using getComponent with no aditional configuration

```js
import { getComponent } from '`@symfony`/ux-live-component';
```

Commits
-------

1ab2f23 [LiveComponent] Update importmap conf in package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New Feature Status: Needs Work Additional work is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants