Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-remove-graphql-queries

Package Overview
Dependencies
Maintainers
7
Versions
448
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-remove-graphql-queries

  • 5.14.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
229K
decreased by-17.39%
Maintainers
7
Weekly downloads
 
Created

What is babel-plugin-remove-graphql-queries?

The babel-plugin-remove-graphql-queries package is a Babel plugin designed to remove GraphQL queries from your JavaScript code at build time. This can be useful for optimizing your code by stripping out unnecessary GraphQL queries, which can reduce the bundle size and improve performance.

What are babel-plugin-remove-graphql-queries's main functionalities?

Remove GraphQL Queries

This feature allows you to remove GraphQL queries from your code during the build process. By including the plugin in your Babel configuration, any GraphQL queries in your code will be stripped out, resulting in a smaller and more efficient bundle.

module.exports = {
  plugins: [
    'babel-plugin-remove-graphql-queries'
  ]
};

Custom Query Removal

This feature provides an option to customize the removal of GraphQL queries. By setting the `removeQueries` option to true, you can ensure that all GraphQL queries are removed from your code during the build process.

module.exports = {
  plugins: [
    ['babel-plugin-remove-graphql-queries', {
      removeQueries: true
    }]
  ]
};

Other packages similar to babel-plugin-remove-graphql-queries

FAQs

Package last updated on 06 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc