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
--drop
Option to define ids of LabelStatements to be stripped from the output
e.g. --droplabel:__DEV__
--droplabel:__DEV__
I find labels to be a better solution over build-time variable injection Rollup has a plugin called "@rollup/plugin-strip" for this purpose:
"@rollup/plugin-strip"
plugins: [ // strips all `__DEV__: ...` labels strip({ labels: ["__DEV__"], include: "**/*.ts" }), ]
Might be a niche request but this is actually the only rollup feature I ever use beside transpilers, I'd love to have that option on esbuild
The text was updated successfully, but these errors were encountered:
9b83e55
No branches or pull requests
Feature request:
Option to define ids of LabelStatements to be stripped from the output
e.g.
--droplabel:__DEV__
I find labels to be a better solution over build-time variable injection
Rollup has a plugin called
"@rollup/plugin-strip"
for this purpose:Might be a niche request but this is actually the only rollup feature I ever use beside transpilers, I'd love to have that option on esbuild
The text was updated successfully, but these errors were encountered: