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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i gatsby-plugin-direct-import

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.72 kB

Total Files

6

Last publish

Collaborators

  • ekoeryanto