-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Change to ESM causes backwards compatibility issues #116
Comments
I think the issue is that supports-color now ONLY supports ESM syntax (it doesn't provide a hybrid configuration to allow for both). I think this is probably going to cause a lot of problems with a lot of people upgrading to this version. It might be a better solution to add a babel compilation step to create a CJS version of the library and then configure that appropriately in the package.json so that either ESM or CJS imports function correctly. https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html - this gives some information about using TypeScript as the transpiler but you could replace it with Babel in CJS configuration as well so you don't have to convert the project to typescript. |
Took me a bit too long to find out why this was closed (Bug->PR->Tag->Release Notes->Gist), so here's the direct link for latecomers: P.S. Takk for et nyttig bibliotek fra gjengen i Sinon. |
Probably. That's why it's a major version. This shouldn't be a surprise to anyone. Please see https://semver.org/. And no, we won't be doing any Babel compilation. That's a dead era. |
The
cordova-webpack-plugin
depends onsupports-color
. All versions 8.1.1 and earlier work fine with the plugin however when upgrading tosupports-color
9.0.0 I get the following error:The text was updated successfully, but these errors were encountered: