Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

gatsby-plugin-direct-import

1.0.0 • Public • Published

gatsby-plugin-direct-import

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

Install

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: [
        "my-package-name",
        {
          "name": "my-package-name/sub-package",
          "indexFile": "my-package-name/sub-package/index.es.js"
        }
      ],
    },
  },
];

install

npm i gatsby-plugin-direct-import

Downloadsweekly downloads

61

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability