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
export declare
The JS emit for the TS code does not match upstream TypeScript.
export namespace ns { export declare let a: number; a = 1; }
No response
https://play.swc.rs/?version=1.10.3&code=H4sIAAAAAAAAA0utKMgvKlHIS8xNLS5ITE5VyCtWqOZSAIJUiExKanJOYlGqQk5qiUKilUJeaW5SapE1WEWigq2CoTVXLQBodLyZRAAAAA%3D%3D&config=H4sIAAAAAAAAA1VPOw7DIAzdOQXy3KFi6NA79BCIOhERAYQdqSjK3QsJpM1mv4%2Ff8yqkhIkMPOVaxrJEnQjTuReEsmf9KQhwjkgm2chw6yxTpQbtCHdoOxhgnUbk6kJSd6WaA1wIhN3RsNl6O%2BT%2FTBPmmJDoKqxS7UeH10TRUmEO72Un2y%2B179HgAT9RDzsPg6VXd3JaUGxfBMLf3xcBAAA%3D
JS emit should be:
export var ns; (function (ns) { ns.a = 1; })(ns || (ns = {}));
JS emit is invalid:
(function(ns) { a = 1; })(ns || (ns = {})); export var ns;
1.10.3
Similar to: rolldown/rolldown#3048
The text was updated successfully, but these errors were encountered:
magic-akari
No branches or pull requests
Describe the bug
The JS emit for the TS code does not match upstream TypeScript.
Input code
Config
No response
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.10.3&code=H4sIAAAAAAAAA0utKMgvKlHIS8xNLS5ITE5VyCtWqOZSAIJUiExKanJOYlGqQk5qiUKilUJeaW5SapE1WEWigq2CoTVXLQBodLyZRAAAAA%3D%3D&config=H4sIAAAAAAAAA1VPOw7DIAzdOQXy3KFi6NA79BCIOhERAYQdqSjK3QsJpM1mv4%2Ff8yqkhIkMPOVaxrJEnQjTuReEsmf9KQhwjkgm2chw6yxTpQbtCHdoOxhgnUbk6kJSd6WaA1wIhN3RsNl6O%2BT%2FTBPmmJDoKqxS7UeH10TRUmEO72Un2y%2B179HgAT9RDzsPg6VXd3JaUGxfBMLf3xcBAAA%3D
SWC Info output
No response
Expected behavior
JS emit should be:
Actual behavior
JS emit is invalid:
Version
1.10.3
Additional context
Similar to: rolldown/rolldown#3048
The text was updated successfully, but these errors were encountered: