We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@wessberg/rollup-plugin-ts: 1.2.25 rollup: 2.15.0 typescript: 3.9.5
Try the following:
// src/lib/a.ts declare global { const good: string } export const a = good
// src/lib/b.ts declare global { const bad: string } export const b = bad
// src/index.ts export { a } from './lib/a' export { b } from './lib/b'
Then, the generated code is fine:
// out/index.js const a = good; const b = bad; export { a, b };
But the corresponding declaration file is not:
// out/index.d.ts declare global { const good: string; } declare const a: string; declare global$0 { const bad: string; } declare const b: string; export { a, b };
The second declare global should not be renamed and ideally the two statements should be merged as one.
declare global
The text was updated successfully, but these errors were encountered:
c78bc52
Hey there. Thanks for the repro instructions. The problem has been fixed and will be released as part of v0.0.27.
Sorry, something went wrong.
No branches or pull requests
@wessberg/rollup-plugin-ts: 1.2.25
rollup: 2.15.0
typescript: 3.9.5
Try the following:
Then, the generated code is fine:
But the corresponding declaration file is not:
The second
declare global
should not be renamed and ideally the two statements should be merged as one.The text was updated successfully, but these errors were encountered: