gatsby-plugin-transform-imports

1.0.0 • Public • Published

gatsby-plugin-babel-plugins

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,
      },
    },
  },
];

Package Sidebar

Install

npm i gatsby-plugin-transform-imports

Weekly Downloads

45

Version

1.0.0

License

MIT

Unpacked Size

2.1 kB

Total Files

6

Last publish

Collaborators

  • ekoeryanto