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
When a constant value imported from a different module, it is not inlined properly. Reproducible in the online playground.
import { isDevelopment } from "./is-development"; export function devWarning() { if(isDevelopment) { console.log('test') } } export function run() { devWarning('dev only'); }
is-development.js contents
export const isDevelopment = false; // does not work either // export const isDevelopment = process.env.NODE_ENV !== "production";
The output still contains an unused function: function o(){!1}. Expected to eliminate all this code, as it happens in a single file setup
function o(){!1}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When a constant value imported from a different module, it is not inlined properly. Reproducible in the online playground.
is-development.js contents
The output still contains an unused function:
function o(){!1}
. Expected to eliminate all this code, as it happens in a single file setupThe text was updated successfully, but these errors were encountered: