-
Notifications
You must be signed in to change notification settings - Fork 192
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
CJS compatibility dropped for @glimmer/syntax
- intentional?
#1668
Comments
The dropping of CJS stuff has also broken DefinitelyTyped's |
the DT types should use older copies of the glimmer dependencies -- we can't support DT types forever -- and I'm not actually sure even if we support them now -- feels kinda like a "Best effort" thing.
I'll PR the re-adding CJS for just |
@davidtaylorhq for the record Embroider main (i.e. vite/unstable) will support esm plugins embroider-build/embroider#2178 That PR even added a regression test so we won't backslide |
I can prevent the DT package from pulling in 0.93 to get CI green, but I am a little confused as I thought glimmer and ember were under the same umbrella. I don't have enough context to understand what the private package |
The DT packages are not under ember really -- moreso a community best effort 💪 |
Yeah, it's just locked off in a development condition which won't be applied by anyone; the same is true for the packages I mentioned. I'm not sure what the difference is, though, to know everything would be solved by pointing CJS to that dir unconditionally. (Or, maybe shipping the dev dir is a mistake) |
well, where this is annoying is that ember uses require to try to point at ESM. but... ember is probably in the wrong here -- and it had some build improvements recently, so if it's not already fixed, it's probably something that I need to update in ember so that problem stops coming up 🙈 |
looks like only 3 deps need updating:
|
FWIW I sent DefinitelyTyped/DefinitelyTyped#71275, but then found https://github.com/emberjs/ember.js/blob/main/packages/%40ember/helper/package.json?rgh-link-date=2024-11-27T18%3A43%3A53Z which actually is a module, but is also in TS, so I am in general, confused as to what's going on with all of this (I don't understand why any of this was on DT as it's private, why ember isn't at least pushing its types over to DT or something to match with the private package) |
well, maybe the situation will improve in that DT PR after: #1669 is released
sort of secretly, most things in the ember ecosystem are sort of not, because none of the packages have type=module -- they used to be ambiguous, but most modern tooling treat js as cjs when type=module isn't set in package.json |
It wouldn't improve unless |
manager and runtime are not used in any cjs tooling. for compatibility with DT, your tsconfig (and their tsconfigs) should probably try using |
The main thing I'm not sure of is the version number this ember package is supposed to have, since there is no npm entry to tell me what the current version is to then put on DT. |
Turns out this |
…tput Fix #1668: Node does not use the 'development' condition with default require() - this PR removes the `development` condition under `require` for `@glimmer/syntax` and dependents.
Since 57e59c4,
@glimmer/syntax
is no longer including cjs modules in the published package. Was this an intentional breaking change?For context: we use
@glimmer/syntax
directly to power a custom babel plugin, which is then consumed by ember-cli/embroider, which seem to only support cjs babel plugins.The text was updated successfully, but these errors were encountered: