Now 100x Faster

Read the latest from Gatsby CTO Kyle Mathews Re-introducing Gatsby, a Reactive Site Generator

ContactSign Up for Free
Community Plugin
View plugin on GitHub


Gatsby plugin to use Babel plugin direct import and make it tree shaking.


npm install --save gatsby-plugin-direct-import

How to use

Add the plugin to your gatsby-config.js.

plugins: [
    resolve: `gatsby-plugin-direct-import`,
    options: {
      packages: [
          "name": "my-package-name/sub-package",
          "indexFile": "my-package-name/sub-package/"
© 2022 Gatsby, Inc.