- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Warning about using objectHashIgnoreUnknownHack in rollup-plugin-typescript2 #305
Comments
Unrelated, but also spotted this in a comment in that issue (also mentioned here), which looks like it provides better integration with Babel (among other features): https://github.com/wessberg/rollup-plugin-ts |
Temporary workaround (when using rollup-plugin-typescript2 >= v0.26):
// a config file for bili [1]. currently used to silence a warning generated by
// rollup-plugin-typescript2 [2]
//
// [1] https://github.com/egoist/bili
// [2] https://github.com/egoist/bili/issues/305
export default {
plugins: {
typescript2: {
objectHashIgnoreUnknownHack: false,
},
}
} |
#305) (#339) rollup-plugin-typescript2 < v0.26 needs the `objectHashIgnoreUnknownHack` option to be enabled to correctly handle async plugins, but it's no longer needed (and causes a warning) if the user has a more recent version installed. this PR detects the version of the plugin, if installed, and enables/disables the option accordingly.
🎉 This issue has been resolved in version 4.9.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I am seeing this issue in 5.0.5. The workaround that @chocolateboy posted above worked to disable the message. |
When running bili (bili/4.8.1 linux-x64 node-v13.8.0) on a TypeScript project, I'm getting the following warning from the latest version of rollup-plugin-typescript2 (v0.26.0):
This option is set to true here:
bili/src/index.ts
Line 230 in f3f1be7
- but, according to this comment, it's no longer needed in the latest version of the plugin:
The text was updated successfully, but these errors were encountered: