-
Notifications
You must be signed in to change notification settings - Fork 237
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
4.0.0 publishing is broken #139
Comments
I don't think it should be broken because according to the ESM docs, the |
I think older resolvers (Typescript in node10 mode) will still use |
Should be fixed in 4.0.1. |
I'm not sure that is the right fix... The old state was that
Is the intent that
Maybe? |
@jakebailey no, my intent is not to support CommonJS at all. UMD |
Ah, then you don't need to publish with the "main" field at all. |
Via https://publint.dev/rbush@4.0.0
When changing the package.json to
"type": "module"
all .js files will be interpreted as ESM, but rbush.js is still CJS. That leads to an issue where certain module resolution setups will result in issues, trying to interpret rbush.js as ESM. I believe this would be resolved by simply changing the filename torbush.cjs
instead.This came up when I was trying to update the types to support 4.0.0 here: DefinitelyTyped/DefinitelyTyped#70340
The text was updated successfully, but these errors were encountered: