Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Advertising the ESM file with the "module" key#35

Merged
1cg merged 1 commit into
bigskysoftware:mainfrom
weaverryan:advertise-module
Jan 29, 2024
Merged

Advertising the ESM file with the "module" key#35
1cg merged 1 commit into
bigskysoftware:mainfrom
weaverryan:advertise-module

Conversation

@weaverryan
Copy link
Copy Markdown
Contributor

Hi!

Fixes #28. Using:

import { Idiomorph } from "idiomorph/dist/idiomorph.esm";

already works, as indicated by the README.md file. However, by adding the module key, users in a module environment will simply be able to say:

import { Idiomorph } from "idiomorph";

Additionally, some CDN's like jsdelivr package an ESM version. As you can see, the current version is an empty file - https://cdn.jsdelivr.net/npm/[email protected]/+esm - the reason being that they look for the module key to know which file to use (see Locating entry points on jsdelivr/jsdelivr#18263 ).

I am not an absolute expert on this topic, but I'm fairly confident with this PR.

Thanks!

@1cg 1cg merged commit 9dc80f0 into bigskysoftware:main Jan 29, 2024
@weaverryan weaverryan deleted the advertise-module branch January 30, 2024 11:25
weaverryan added a commit to symfony/ux that referenced this pull request Feb 29, 2024
…ase πŸš€ (weaverryan)

This PR was squashed before being merged into the 2.x branch.

Discussion
----------

[Live][Stimulus] Prepping the LiveComponent Stable Release πŸš€

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| Issues        | None
| License       | MIT

Hi!

LiveComponents has, really, been quite stable for a long time, but it's kept its experimental status. Removing that is really about deciding that we'll protect backwards-compatibility. It's time to do that :).

This is planned as the 2.15.0 release near the end of Feb (assuming we get the items below done before then).

TODOs:

* #1418
* Possibly remove Twig 2.x compat
* #1428
* #1392
* Moving `Idiomorph` to a peer dependency would be great, but blocked by bigskysoftware/idiomorph#35 - **still need a tag** for the PR merge
* #1426 as it may include some edge-case BC breaks.

If there's anything else on your mind before stable, now is the time to mention it :).

Cheers!

Commits
-------

7932a9d [Live][Stimulus] Prepping the LiveComponent Stable Release πŸš€
@slavafyi slavafyi mentioned this pull request Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Idiomorph imported as empty object

2 participants