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

Package Sidebar

Install

npm i gatsby-plugin-direct-import

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.72 kB

Total Files

6

Last publish

Collaborators

  • ekoeryanto