2.1.1 • Published 3 years ago

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

Weekly downloads
65,259
License
MIT
Repository
github
Last release
3 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-typescriptitsalljs-themegxmdx-deckolly-docs-wrapperreact-ui-docsmooth-asciidocsmooth-docsmooth-doc-aamuapptuns-component-themetheme-component-shadowing-test@arimaulana/empty-space@availity/gatsby-theme-docs@axe312/gatsby-theme-docz@basic-ui/gatsby-theme-docs@amberleyromo/gatsby-theme-notes@bill-doc/doc-theme-gatsby@aamuapp/smooth-doc@brainhubeu/gatsby-docs-kit@dcl/docs-site@philpl/gatsby-theme-mdx-deck@greatgatsbyjs/gatsby-theme-ggt-material-ui-blog@hummingbird/gatsby-theme@g.vocale/gatsby-theme-memoriestoriche@gatsby-themes/core@gatsby-themes/drupal@gatsby-themes/emotion@gatsby-themes/emotion-recipe-theme@gatsby-themes/mui@gatsby-themes/tailwind@fox-tech/doc@lucasterra7/gatsby-theme-docs@lundgren/gatsby-theme-lundgren-blog@mvarble/gatsby-theme-mdx-deck@nejcm/docz-theme-extended@mdx-deck/next@mdx-deck/gatsby-theme@moltin/gatsby-theme-moltin@jlengstorf/gatsby-theme-data@jaenjs/jaen@jobber/docz-theme@rebass/gatsby-theme-docs@novvum/base-theme@novvum/web-theme@pedronauck/gatsby-theme-blog@shenhh/smooth-doc@synesthesia/gatsby-theme-garden@spraoi/gatsby-config@snek-at/jaen-pages@zoetic/zoetic@zalastax/nolb-gatsby-plugin-c@dschau/gatsby-theme-blog-finland@dschau/gatsby-theme-navigation-finland@dschau/gatsby-theme-search-finland@concisejs/docz-theme-ext@unisite/core-blog@unisite/theme-blog@whitespace/gatsby-plugin-wsui@wingscms/hummingbirdbill-doc-theme-gatsbycaf_gatsby-theme-mdx-deckdcme-gatsbyeh-gatsby-theme-doczempty-space-gatsby-themefigdog-themegatsby-roamgatsby-philipps-foam-themegatsby-latreia-meghnagatsby-crudzoogatsby-theme-netlify-cmsgatsby-theme-ltgatsby-theme-luchoster-basegatsby-theme-mdx-deckgatsby-theme-julesgatsby-theme-material-foundrygatsby-theme-material-uigatsby-stripe-checkout-button-for-plansgatsby-theme-gardengatsby-theme-gardenxgatsby-theme-hbs-mdxgatsby-theme-hungry-bear-basegatsby-theme-elevator-pitchgatsby-theme-example-workspacesgatsby-starter-morning-dewgatsby-starter-heydaysgatsby-theme-advancedgatsby-theme-bcoynegatsby-theme-blocks-docsgatsby-theme-blog-altongatsby-theme-blog-de-young
2.1.1

3 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.2.0

5 years ago

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago