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@dschau/gatsby-theme-blog-finland@dschau/gatsby-theme-navigation-finland@dschau/gatsby-theme-search-finland@concisejs/docz-theme-exteh-gatsby-theme-doczempty-space-gatsby-theme@unisite/core-blog@unisite/theme-blogfigdog-theme@wingscms/hummingbird@whitespace/gatsby-plugin-wsui@zoetic/zoetic@zalastax/nolb-gatsby-plugin-cgatsby-roamgatsby-theme-netlify-cmsgatsby-theme-julesgatsby-theme-ltgatsby-theme-luchoster-basegatsby-theme-material-foundrygatsby-theme-material-uigatsby-theme-mdx-deckgatsby-theme-bcoynegatsby-theme-blocks-docsgatsby-theme-carbon-betagatsby-theme-blog-de-younggatsby-theme-blog-doelgergatsby-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-lawtongatsby-theme-blog-lincolngatsby-theme-blog-moragagatsby-theme-blog-noriegagatsby-theme-blog-ocean-beachgatsby-theme-blog-typographygatsby-theme-blog-altongatsby-theme-prismic-starter
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