2.1.1 • Published 4 years ago

gatsby-plugin-compile-es6-packages v2.1.1

Weekly downloads
65,259
License
MIT
Repository
github
Last release
4 years ago

gatsby-plugin-compile-es6-packages

npm version npm downloads

Allows you to easily specify npm modules to be included in transpiling with babel.

This plugin works with Gatsby V2+

Discussion of this issue at https://github.com/gatsbyjs/gatsby/issues/3780

Install

npm install --save gatsby-plugin-compile-es6-packages

or

yarn add gatsby-plugin-compile-es6-packages

How to use

Add the plugin to your gatsby-config.js. Specify the npm modules containing ES6 code that require transpilation.

plugins: [
  {
    resolve: `gatsby-plugin-compile-es6-packages`,
    options: {
      modules: [`query-string`]
    }
  }
];

Options

OptionExplanationDefaultRequired
modulesSpecify the npm modules containing ES6 code that require transpilation[]YES
testAdjusts the regex for the webpack rule/\.js$/NO

You may also need to use other plugins to handle any specific babel config to transpile the es6 code (i.e. gatsby-plugin-flow)

@studiobear/gatsby-theme-blog-ionic@nowseemee/monumentgatsby-theme-css-modules-demogatsby-theme-memoriestoriche@stvad/gatsby-theme-gardendocz-theme-pidsgatsby-theme-defaultsgatsby-theme-typescript-storybookgatsby-theme-podcaster@everything-registry/sub-chunk-1721gatsby-theme-blog-typescriptgxmdx-deck@whitespace/gatsby-plugin-wsui@wingscms/hummingbird@unisite/core-blog@unisite/theme-blog@zalastax/nolb-gatsby-plugin-c@zoetic/zoetic@aamuapp/smooth-doc@greatgatsbyjs/gatsby-theme-ggt-material-ui-blog@concisejs/docz-theme-ext@amberleyromo/gatsby-theme-notesitsalljs-themetuns-component-themetheme-component-shadowing-test@basic-ui/gatsby-theme-docs@bill-doc/doc-theme-gatsby@brainhubeu/gatsby-docs-kit@philpl/gatsby-theme-mdx-deck@mvarble/gatsby-theme-mdx-deck@nejcm/docz-theme-extended@rebass/gatsby-theme-docs@pedronauck/gatsby-theme-blogolly-docs-wrapperreact-ui-docsmooth-asciidocsmooth-docsmooth-doc-aamuappdcme-gatsbybill-doc-theme-gatsbycaf_gatsby-theme-mdx-deckgatsby-theme-advancedgatsby-theme-blog-elk-glengatsby-theme-blog-fairy-gatesgatsby-theme-blog-funstongatsby-theme-blog-grand-viewgatsby-theme-blog-irvinggatsby-theme-blog-judahgatsby-theme-blog-kirkhamgatsby-theme-blog-moragagatsby-theme-blog-noriegagatsby-theme-blog-ocean-beachgatsby-theme-bcoynegatsby-theme-blog-altongatsby-theme-blog-de-younggatsby-theme-blog-doelgergatsby-theme-blog-lawtongatsby-theme-blog-lincolngatsby-theme-blog-typographygatsby-theme-carbon-betagatsby-theme-blocks-docsgatsby-crudzoogatsby-philipps-foam-themegatsby-latreia-meghnagatsby-theme-darklight-bloggatsby-theme-datagatsby-theme-datocmsgatsby-theme-digettgatsby-theme-digett-landinggatsby-theme-doczgatsby-theme-elevator-pitchgatsby-theme-dslemay-coregatsby-theme-example-workspacesgatsby-theme-digital-garden-portfoliogatsby-theme-docs-enginegatsby-theme-docs-systemgatsby-roamgatsby-starter-morning-dewgatsby-starter-heydaysgatsby-stripe-checkout-button-for-plansgatsby-theme-overreacted-togglegatsby-theme-personal-bloggatsby-theme-podcastgatsby-theme-netlify-cmsgatsby-theme-powerboardgatsby-theme-powerboard-basegatsby-theme-powerboard-ecommercegatsby-theme-prismic-startergatsby-theme-quizgatsby-theme-runkaigatsby-theme-tattoogatsby-theme-shopify-productsgatsby-theme-simple-docsgatsby-theme-startgatsbygatsby-theme-stripe-checkout-buttongatsby-theme-presentergatsby-theme-resumegatsby-theme-shopifygatsby-theme-shopify-articles
2.1.1

4 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.0

6 years ago

1.1.0

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago