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

Need option to remove console.* #145

Closed
breezefeng opened this issue Apr 13, 2021 · 3 comments
Closed

Need option to remove console.* #145

breezefeng opened this issue Apr 13, 2021 · 3 comments

Comments

@breezefeng
Copy link

Need option to remove console.*

@privatenumber
Copy link
Owner

Sorry I don't know what this means.

Please follow the Issue template to clearly communicate your request.

@ankurk91
Copy link

ankurk91 commented Jul 25, 2021

@privatenumber

esbuild has an option to remove console.log() statements from output.

evanw/esbuild#28

The API looks like this.

require('esbuild').transformSync(js, {
  pure: ['console.log'],
  minify: true,
})

@privatenumber
Copy link
Owner

privatenumber commented Jul 26, 2021

I'm not sure if you're trying to ask me for something, but FYI:

The loader supports all Transform options from esbuild.

https://github.com/privatenumber/esbuild-loader#loader

Locking thread because original post lacks information. If there's a feature request to make, please feel free to open another one with the requested information.

Repository owner locked as off-topic and limited conversation to collaborators Jul 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants