Skip to content
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

Do not trust Scope when removing TypeScript types #10174

Merged
merged 5 commits into from Jul 8, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

Node 6

  • Loading branch information...
nicolo-ribaudo committed Jul 7, 2019
commit 18c584f0bb5b148f9d69248a7e9b84ba1bd99a87
@@ -13,10 +13,8 @@ module.exports = function({ template, types: t }) {
post({ path }) {
console.warn = consoleWarn;

path.pushContainer(
"body",
t.expressionStatement(t.valueToNode(warnings)),
);
const stmt = t.expressionStatement(t.valueToNode(warnings));
path.pushContainer("body", stmt);
},

visitor: {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.