@smarterlabs/gatsby-plugin-browser-dependencies

1.0.2 • Public • Published

@smarterlabs/gatsby-plugin-browser-dependencies

Excludes browser-only dependencies from your SSR builds in Gatsby.

Installation

yarn add @smarterlabs/gatsby-plugin-browser-dependencies

or

npm install --save @smarterlabs/gatsby-plugin-browser-dependencies

Usage

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `@smarterlabs/gatsby-plugin-browser-dependencies`,
      options: {
        dependencies: [
          `auth-js`,
          `browser-only-module`,
        ]
      },
    },
  ],
}

/@smarterlabs/gatsby-plugin-browser-dependencies/

    Package Sidebar

    Install

    npm i @smarterlabs/gatsby-plugin-browser-dependencies

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    2.76 kB

    Total Files

    5

    Last publish

    Collaborators

    • ken85rose