-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Incorrect Bundling Behavior #38
Comments
What is incorrect? |
To be clear, there is nothing wrong with the css-color itself. "type": "module",
"exports": {
"import": "foo.js",
"require": "foo.cjs"
} jest and vitest both do not fully assume like the case above, if there was no |
@asamuzaK Can you clarify your statement? Are you saying |
They do read |
@asamuzaK Either way, @crutchcorn is correct, @asamuzaK don't take this the wrong way, but this package is misconfigured: There is no We have a top level |
Done in #37
I have a question out of curiosity: as far as I know, cssstyle also doesn't provide types, so why does its dependent package, css-color, need types? Anyway, let's figure out how to provide *.d.ts to cjs.
I'm a bit confused.
Welcome. |
@asamuzaK one of the ways you can supply TS files for CJS properly is to have |
@asamuzaK Yes, and yes. The best way to go about this is let @crutchcorn submit a PR and resolve the issue, you can review it, and any part of it you don't like, we'll figure out what to do with next. @crutchcorn is a seasoned library maintainer and he wants to contribute and this is an open source project (as in you're not alone, you don't have to do it all by yourself), so let him. He is halfway done already and it's looking really good, so let'e holdout to see what the end product is going to be. |
Thanks, but how? I'm not opposed to migrating to TypeScript, but only if there's something that can't be achieved without migrating to TypeScript. |
re |
Per jsdom/cssstyle#182, I noticed this package doesn't appear to be bundling proper ESM and CJS assets as-likely intended.
I'd love to submit a PR to fix this using TanStack Config, a project of mine and the rest of TanStack Team's that allows ESM and CJS configuration with very little configuration.
Some of the major changes that would be made would be:
.js
files to.ts
However, it should lead to a much more stable publishing platform and faster iteration on code
Would you be okay with this? I'd like to unblock this quickly, as it appears to be impeding many many JSDom projects looking to refresh their lockfiles.
The text was updated successfully, but these errors were encountered: