Socket
Book a DemoInstallSign in
Socket

babel-plugin-import-graphql-files

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-import-graphql-files

Babel plugin to import .gql,.graphql files

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-import-graphql-files

This babel plugin lets you import GraphQL files into your Javascript application as compiled schema definitions. Which uses graphql-tag package to compile them into their compiled equivalent.

Installation

npm

npm install --save-dev babel-plugin-import-graphql-files

yarn

yarn add --dev babel-plugin-import-graphql-files

Usage

In your babel configuration file, just add the package name into your plugins array.

{
    plugins: [
        'babel-plugin-import-graphql-files'
    ]
}

or

{
    plugins: [
        'import-graphql-files'
    ]
}

Keywords

babel

FAQs

Package last updated on 04 Oct 2020

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