Closed hoangngocthanh closed 1 year ago
Interesting. Thank you for reporting this!
A quick audit with publint shows no errors and one suggestion:
I wonder if addressing that will fix it or if there's more to it. I definitely want to look more into this.
@hoangngocthanh could you please append the full contents of your tsconfig.json
file in your original message?
Should be fixed with v1.1.1. @hoangngocthanh please let me know how that works for you.
Also, any feedback about the new release's compatibility with existing repos importing ts-xor
and having different tsconfig configurations would also be appreciated. Tried my best not too, but it's hard to know I haven't introduced a regression with the cjs/esm mess... :man_shrugging:
Should be fixed with v1.1.1. @hoangngocthanh please let me know how that works for you.
Also, any feedback about the new release's compatibility with existing repos importing
ts-xor
and having different tsconfig configurations would also be appreciated. Tried my best not too, but it's hard to know I haven't introduced a regression with the cjs/esm mess... 🤷♂️
I find it working well with v1.1.1, thanks for the support!
Due to https://www.typescriptlang.org/docs/handbook/esm-node.html, it required a full import with file extension when using latest ECMAScript Modules config in tsconfig.json, so it cause a bug that can not expose the XOR declaration. How to reproduce: Set: compilerOptions.moduleResolution: "NodeNext" in tsconfig.json