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-typescripttheme-component-shadowing-testtuns-component-theme@moltin/gatsby-theme-moltin@mvarble/gatsby-theme-mdx-deckgatsby-theme-mdxitsalljs-theme@pedronauck/gatsby-theme-blog@philpl/gatsby-theme-mdx-deck@novvum/web-theme@novvum/base-theme@nejcm/docz-theme-extended@wingscms/hummingbirdempty-space-gatsby-theme@mdx-deck/gatsby-theme@mdx-deck/next@shenhh/smooth-doc@snek-at/jaen-pages@unisite/core-blog@unisite/theme-blog@synesthesia/gatsby-theme-gardeneh-gatsby-theme-docz@spraoi/gatsby-config@rebass/gatsby-theme-docsgatsby-philipps-foam-themegatsby-starter-heydaysgatsby-theme-hbs-mdxgatsby-theme-hungry-bear-basegatsby-theme-julesgatsby-theme-elevator-pitchgatsby-theme-gardengatsby-theme-gardenxgatsby-theme-example-workspacesgatsby-theme-blog-altongatsby-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-lincolngatsby-theme-blog-judahgatsby-theme-blog-kirkhamgatsby-theme-blog-lawtongatsby-theme-blog-moragagatsby-theme-blog-noriegagatsby-theme-blog-ocean-beachgatsby-theme-blog-typographygatsby-theme-carbon-beta@arimaulana/empty-spacegatsby-theme-bcoynegatsby-theme-blocks-docsgatsby-theme-west-egggatsby-theme-west-egg-coregatsby-theme-west-egg-stripe-cartgatsby-theme-west-egg-stylegatsby-theme-undataforumgatsby-theme-tattoogatsby-theme-simple-docsgatsby-theme-startgatsbygatsby-theme-stripe-checkout-buttongatsby-theme-typescriptgatsby-theme-ugatsby-starter-morning-dewgatsby-theme-darklight-bloggatsby-theme-datagatsby-theme-datocmsgatsby-theme-digettgatsby-theme-digett-landinggatsby-theme-digital-garden-portfoliogatsby-theme-docs-enginegatsby-theme-docs-systemgatsby-theme-doczgatsby-theme-dslemay-coregatsby-stripe-checkout-button-for-plansgatsby-theme-advancedgatsby-theme-netlify-cmsgatsby-theme-ltgatsby-theme-luchoster-basegatsby-theme-material-foundrygatsby-theme-material-uigatsby-theme-mdx-deckgatsby-theme-powerboardgatsby-theme-powerboard-basegatsby-theme-powerboard-ecommercegatsby-theme-presentergatsby-theme-prismic-startergatsby-theme-quizgatsby-theme-podcast
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

5 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