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@spraoi/gatsby-config@snek-at/jaen-pages@dschau/gatsby-theme-blog-finland@dschau/gatsby-theme-navigation-finland@dschau/gatsby-theme-search-finland@concisejs/docz-theme-ext@zalastax/nolb-gatsby-plugin-cbill-doc-theme-gatsby@wingscms/hummingbird@whitespace/gatsby-plugin-wsui@synesthesia/gatsby-theme-garden@unisite/core-blog@unisite/theme-blog@zoetic/zoeticdcme-gatsbycaf_gatsby-theme-mdx-deckfigdog-themegatsby-crudzoogatsby-latreia-meghnagatsby-starter-morning-dewgatsby-starter-heydaysgatsby-theme-advancedgatsby-stripe-checkout-button-for-plansgatsby-theme-typescriptgatsby-theme-ugatsby-theme-west-egggatsby-theme-west-egg-coregatsby-theme-west-egg-stripe-cartgatsby-theme-west-egg-stylegatsby-theme-undataforumgatsby-theme-hbs-mdxgatsby-theme-hungry-bear-basegatsby-theme-elevator-pitchgatsby-theme-example-workspacesgatsby-theme-gardengatsby-theme-gardenxgatsby-theme-julesgatsby-theme-darklight-bloggatsby-theme-datagatsby-theme-datocmsgatsby-theme-docs-enginegatsby-theme-docs-systemgatsby-theme-doczgatsby-theme-digett
2.1.1

3 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

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