Skip to content

ekoeryanto/gatsby-plugin-transform-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatsby-plugin-transform-imports

Use Babel plugin transform imports with Gatsby

Install

npm install gatsby-plugin-transform-imports

How to use

Configure options in your gatsby-config.js file.

// in gatsby-config.js
plugins: [
  {
    resolve: 'gatsby-plugin-transform-imports',
    options: {
      'react-bootstrap': {
        transform: 'react-bootstrap/lib/${member}',
        preventFullImport: true,
      },
      lodash: {
        transform: 'lodash/${member}',
        preventFullImport: true,
      },
    },
  },
];

About

Gatsby plugin to use Babel plugin transform imports

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published