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
Here is a babel config:
module.exports = { plugins: [["transform-define", { TEST: "replaced" }]], };
Transform the code below:
console.log(TEST); // should be transformed function fn() { let TEST = "test"; // should not be transformed console.log(TEST); // should not be transformed }
Currently, will be transformed into:
console.log("replaced"); function fn() { let "replaced" = "test"; // an error will be thrown here console.log("replaced"); }
Similar to #69 , an error will be thrown.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Here is a babel config:
Transform the code below:
Currently, will be transformed into:
Similar to #69 , an error will be thrown.
The text was updated successfully, but these errors were encountered: