Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: [email protected]
Choose a base ref
...
head repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: [email protected]
Choose a head ref
  • 7 commits
  • 206 files changed
  • 4 contributors

Commits on Mar 11, 2019

  1. Copy the full SHA
    3a4587d View commit details
  2. Copy the full SHA
    c15a595 View commit details
  3. test(babel-preset-gatsby-package): add test for production mode (#12177)

    * test(babel-preset-gatsby-package): add test for production browser targets
    
    * refactor: use snapshots
    
    * refactor: use beforeAll/afterAll hooks to deal with env
    ollelauribostrom authored and sidharthachatterjee committed Mar 11, 2019
    Copy the full SHA
    3779201 View commit details
  4. Copy the full SHA
    ffa3959 View commit details
  5. Copy the full SHA
    63cc996 View commit details
  6. fix(gatsby-plugin-flow): add .babelrc to transpile to cjs (#12490)

    * fix(gatsby-plugin-flow): add .babelrc to transpile to cjs
    
    * add dev dep
    pieh authored Mar 11, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ad6c1f0 View commit details
  7. chore(release): Publish

     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
     - [email protected]
    pieh committed Mar 11, 2019
    Copy the full SHA
    17118da View commit details
Showing with 1,126 additions and 359 deletions.
  1. +2 −1 docs/docs/how-plugins-work.md
  2. +4 −0 packages/babel-plugin-remove-graphql-queries/CHANGELOG.md
  3. +2 −2 packages/babel-plugin-remove-graphql-queries/package.json
  4. +4 −0 packages/babel-preset-gatsby-package/CHANGELOG.md
  5. +181 −0 packages/babel-preset-gatsby-package/__tests__/__snapshots__/index.js.snap
  6. +59 −147 packages/babel-preset-gatsby-package/__tests__/index.js
  7. +1 −1 packages/babel-preset-gatsby-package/index.js
  8. +1 −1 packages/babel-preset-gatsby-package/package.json
  9. +3 −0 packages/babel-preset-gatsby-package/resolver.js
  10. +4 −0 packages/babel-preset-gatsby/CHANGELOG.md
  11. +2 −2 packages/babel-preset-gatsby/package.json
  12. +4 −0 packages/gatsby-cli/CHANGELOG.md
  13. +2 −2 packages/gatsby-cli/package.json
  14. +4 −0 packages/gatsby-codemods/CHANGELOG.md
  15. +2 −2 packages/gatsby-codemods/package.json
  16. +4 −0 packages/gatsby-cypress/CHANGELOG.md
  17. +2 −2 packages/gatsby-cypress/package.json
  18. +4 −0 packages/gatsby-dev-cli/CHANGELOG.md
  19. +2 −2 packages/gatsby-dev-cli/package.json
  20. +4 −0 packages/gatsby-image/CHANGELOG.md
  21. +2 −2 packages/gatsby-image/package.json
  22. +4 −0 packages/gatsby-link/CHANGELOG.md
  23. +2 −2 packages/gatsby-link/package.json
  24. +4 −0 packages/gatsby-plugin-canonical-urls/CHANGELOG.md
  25. +2 −2 packages/gatsby-plugin-canonical-urls/package.json
  26. +4 −0 packages/gatsby-plugin-catch-links/CHANGELOG.md
  27. +2 −2 packages/gatsby-plugin-catch-links/package.json
  28. +4 −0 packages/gatsby-plugin-coffeescript/CHANGELOG.md
  29. +2 −2 packages/gatsby-plugin-coffeescript/package.json
  30. +4 −0 packages/gatsby-plugin-create-client-paths/CHANGELOG.md
  31. +2 −2 packages/gatsby-plugin-create-client-paths/package.json
  32. +4 −0 packages/gatsby-plugin-cxs/CHANGELOG.md
  33. +2 −2 packages/gatsby-plugin-cxs/package.json
  34. +4 −0 packages/gatsby-plugin-emotion/CHANGELOG.md
  35. +2 −2 packages/gatsby-plugin-emotion/package.json
  36. +4 −0 packages/gatsby-plugin-facebook-analytics/CHANGELOG.md
  37. +2 −2 packages/gatsby-plugin-facebook-analytics/package.json
  38. +118 −0 packages/gatsby-plugin-facebook-analytics/src/__tests__/__snapshots__/gatsby-ssr.js.snap
  39. +40 −0 packages/gatsby-plugin-facebook-analytics/src/__tests__/gatsby-browser.js
  40. +61 −0 packages/gatsby-plugin-facebook-analytics/src/__tests__/gatsby-ssr.js
  41. +1 −1 packages/gatsby-plugin-facebook-analytics/src/gatsby-browser.js
  42. +1 −1 packages/gatsby-plugin-facebook-analytics/src/gatsby-ssr.js
  43. +4 −0 packages/gatsby-plugin-feed/CHANGELOG.md
  44. +2 −2 packages/gatsby-plugin-feed/package.json
  45. +3 −0 packages/gatsby-plugin-flow/.babelrc
  46. +6 −0 packages/gatsby-plugin-flow/CHANGELOG.md
  47. +2 −1 packages/gatsby-plugin-flow/package.json
  48. +4 −0 packages/gatsby-plugin-fullstory/CHANGELOG.md
  49. +2 −2 packages/gatsby-plugin-fullstory/package.json
  50. +32 −0 packages/gatsby-plugin-fullstory/src/__tests__/__snapshots__/gatsby-ssr.js.snap
  51. +37 −0 packages/gatsby-plugin-fullstory/src/__tests__/gatsby-ssr.js
  52. +1 −1 packages/gatsby-plugin-fullstory/src/gatsby-ssr.js
  53. +4 −0 packages/gatsby-plugin-glamor/CHANGELOG.md
  54. +2 −2 packages/gatsby-plugin-glamor/package.json
  55. +4 −0 packages/gatsby-plugin-google-analytics/CHANGELOG.md
  56. +2 −2 packages/gatsby-plugin-google-analytics/package.json
  57. +4 −0 packages/gatsby-plugin-google-gtag/CHANGELOG.md
  58. +2 −2 packages/gatsby-plugin-google-gtag/package.json
  59. +4 −0 packages/gatsby-plugin-google-tagmanager/CHANGELOG.md
  60. +2 −2 packages/gatsby-plugin-google-tagmanager/package.json
  61. +4 −0 packages/gatsby-plugin-guess-js/CHANGELOG.md
  62. +2 −2 packages/gatsby-plugin-guess-js/package.json
  63. +4 −0 packages/gatsby-plugin-jss/CHANGELOG.md
  64. +2 −2 packages/gatsby-plugin-jss/package.json
  65. +4 −0 packages/gatsby-plugin-layout/CHANGELOG.md
  66. +2 −2 packages/gatsby-plugin-layout/package.json
  67. +4 −0 packages/gatsby-plugin-less/CHANGELOG.md
  68. +2 −2 packages/gatsby-plugin-less/package.json
  69. +4 −0 packages/gatsby-plugin-lodash/CHANGELOG.md
  70. +2 −2 packages/gatsby-plugin-lodash/package.json
  71. +4 −0 packages/gatsby-plugin-manifest/CHANGELOG.md
  72. +2 −2 packages/gatsby-plugin-manifest/package.json
  73. +4 −0 packages/gatsby-plugin-netlify-cms/CHANGELOG.md
  74. +2 −2 packages/gatsby-plugin-netlify-cms/package.json
  75. +4 −0 packages/gatsby-plugin-netlify/CHANGELOG.md
  76. +2 −2 packages/gatsby-plugin-netlify/package.json
  77. +4 −0 packages/gatsby-plugin-nprogress/CHANGELOG.md
  78. +2 −2 packages/gatsby-plugin-nprogress/package.json
  79. +4 −0 packages/gatsby-plugin-offline/CHANGELOG.md
  80. +2 −2 packages/gatsby-plugin-offline/package.json
  81. +4 −0 packages/gatsby-plugin-page-creator/CHANGELOG.md
  82. +2 −2 packages/gatsby-plugin-page-creator/package.json
  83. +4 −0 packages/gatsby-plugin-postcss/CHANGELOG.md
  84. +2 −2 packages/gatsby-plugin-postcss/package.json
  85. +4 −0 packages/gatsby-plugin-preact/CHANGELOG.md
  86. +2 −2 packages/gatsby-plugin-preact/package.json
  87. +4 −0 packages/gatsby-plugin-react-css-modules/CHANGELOG.md
  88. +2 −2 packages/gatsby-plugin-react-css-modules/package.json
  89. +4 −0 packages/gatsby-plugin-react-helmet/CHANGELOG.md
  90. +2 −2 packages/gatsby-plugin-react-helmet/package.json
  91. +4 −0 packages/gatsby-plugin-remove-trailing-slashes/CHANGELOG.md
  92. +2 −2 packages/gatsby-plugin-remove-trailing-slashes/package.json
  93. +4 −0 packages/gatsby-plugin-sass/CHANGELOG.md
  94. +2 −2 packages/gatsby-plugin-sass/package.json
  95. +4 −0 packages/gatsby-plugin-sharp/CHANGELOG.md
  96. +2 −2 packages/gatsby-plugin-sharp/package.json
  97. +4 −0 packages/gatsby-plugin-sitemap/CHANGELOG.md
  98. +2 −2 packages/gatsby-plugin-sitemap/package.json
  99. +4 −0 packages/gatsby-plugin-styled-components/CHANGELOG.md
  100. +2 −2 packages/gatsby-plugin-styled-components/package.json
  101. +4 −0 packages/gatsby-plugin-styled-jsx/CHANGELOG.md
  102. +2 −2 packages/gatsby-plugin-styled-jsx/package.json
  103. +4 −0 packages/gatsby-plugin-styletron/CHANGELOG.md
  104. +2 −2 packages/gatsby-plugin-styletron/package.json
  105. +4 −0 packages/gatsby-plugin-stylus/CHANGELOG.md
  106. +2 −2 packages/gatsby-plugin-stylus/package.json
  107. +4 −0 packages/gatsby-plugin-subfont/CHANGELOG.md
  108. +2 −2 packages/gatsby-plugin-subfont/package.json
  109. +4 −0 packages/gatsby-plugin-twitter/CHANGELOG.md
  110. +2 −2 packages/gatsby-plugin-twitter/package.json
  111. +4 −0 packages/gatsby-plugin-typescript/CHANGELOG.md
  112. +3 −3 packages/gatsby-plugin-typescript/package.json
  113. +4 −0 packages/gatsby-plugin-typography/CHANGELOG.md
  114. +2 −2 packages/gatsby-plugin-typography/package.json
  115. +4 −0 packages/gatsby-react-router-scroll/CHANGELOG.md
  116. +2 −2 packages/gatsby-react-router-scroll/package.json
  117. +4 −0 packages/gatsby-remark-autolink-headers/CHANGELOG.md
  118. +2 −2 packages/gatsby-remark-autolink-headers/package.json
  119. +4 −0 packages/gatsby-remark-code-repls/CHANGELOG.md
  120. +2 −2 packages/gatsby-remark-code-repls/package.json
  121. +4 −0 packages/gatsby-remark-copy-linked-files/CHANGELOG.md
  122. +2 −2 packages/gatsby-remark-copy-linked-files/package.json
  123. +4 −0 packages/gatsby-remark-custom-blocks/CHANGELOG.md
  124. +2 −2 packages/gatsby-remark-custom-blocks/package.json
  125. +4 −0 packages/gatsby-remark-embed-snippet/CHANGELOG.md
  126. +2 −2 packages/gatsby-remark-embed-snippet/package.json
  127. +4 −0 packages/gatsby-remark-graphviz/CHANGELOG.md
  128. +2 −2 packages/gatsby-remark-graphviz/package.json
  129. +4 −0 packages/gatsby-remark-images/CHANGELOG.md
  130. +2 −2 packages/gatsby-remark-images/package.json
  131. +4 −0 packages/gatsby-remark-katex/CHANGELOG.md
  132. +2 −2 packages/gatsby-remark-katex/package.json
  133. +4 −0 packages/gatsby-remark-prismjs/CHANGELOG.md
  134. +2 −2 packages/gatsby-remark-prismjs/package.json
  135. +4 −0 packages/gatsby-remark-responsive-iframe/CHANGELOG.md
  136. +2 −2 packages/gatsby-remark-responsive-iframe/package.json
  137. +4 −0 packages/gatsby-remark-smartypants/CHANGELOG.md
  138. +2 −2 packages/gatsby-remark-smartypants/package.json
  139. +4 −0 packages/gatsby-source-contentful/CHANGELOG.md
  140. +3 −3 packages/gatsby-source-contentful/package.json
  141. +4 −0 packages/gatsby-source-drupal/CHANGELOG.md
  142. +3 −3 packages/gatsby-source-drupal/package.json
  143. +4 −0 packages/gatsby-source-faker/CHANGELOG.md
  144. +2 −2 packages/gatsby-source-faker/package.json
  145. +4 −0 packages/gatsby-source-filesystem/CHANGELOG.md
  146. +2 −2 packages/gatsby-source-filesystem/package.json
  147. +4 −0 packages/gatsby-source-graphql/CHANGELOG.md
  148. +2 −2 packages/gatsby-source-graphql/package.json
  149. +4 −0 packages/gatsby-source-hacker-news/CHANGELOG.md
  150. +2 −2 packages/gatsby-source-hacker-news/package.json
  151. +4 −0 packages/gatsby-source-lever/CHANGELOG.md
  152. +2 −2 packages/gatsby-source-lever/package.json
  153. +4 −0 packages/gatsby-source-medium/CHANGELOG.md
  154. +2 −2 packages/gatsby-source-medium/package.json
  155. +4 −0 packages/gatsby-source-mongodb/CHANGELOG.md
  156. +2 −2 packages/gatsby-source-mongodb/package.json
  157. +4 −0 packages/gatsby-source-npm-package-search/CHANGELOG.md
  158. +2 −2 packages/gatsby-source-npm-package-search/package.json
  159. +4 −0 packages/gatsby-source-shopify/CHANGELOG.md
  160. +3 −3 packages/gatsby-source-shopify/package.json
  161. +4 −0 packages/gatsby-source-wikipedia/CHANGELOG.md
  162. +2 −2 packages/gatsby-source-wikipedia/package.json
  163. +4 −0 packages/gatsby-source-wordpress/CHANGELOG.md
  164. +3 −3 packages/gatsby-source-wordpress/package.json
  165. +4 −0 packages/gatsby-transformer-asciidoc/CHANGELOG.md
  166. +2 −2 packages/gatsby-transformer-asciidoc/package.json
  167. +4 −0 packages/gatsby-transformer-csv/CHANGELOG.md
  168. +2 −2 packages/gatsby-transformer-csv/package.json
  169. +4 −0 packages/gatsby-transformer-documentationjs/CHANGELOG.md
  170. +2 −2 packages/gatsby-transformer-documentationjs/package.json
  171. +4 −0 packages/gatsby-transformer-excel/CHANGELOG.md
  172. +2 −2 packages/gatsby-transformer-excel/package.json
  173. +4 −0 packages/gatsby-transformer-hjson/CHANGELOG.md
  174. +2 −2 packages/gatsby-transformer-hjson/package.json
  175. +4 −0 packages/gatsby-transformer-javascript-frontmatter/CHANGELOG.md
  176. +2 −2 packages/gatsby-transformer-javascript-frontmatter/package.json
  177. +4 −0 packages/gatsby-transformer-javascript-static-exports/CHANGELOG.md
  178. +2 −2 packages/gatsby-transformer-javascript-static-exports/package.json
  179. +4 −0 packages/gatsby-transformer-json/CHANGELOG.md
  180. +2 −2 packages/gatsby-transformer-json/package.json
  181. +4 −0 packages/gatsby-transformer-pdf/CHANGELOG.md
  182. +2 −2 packages/gatsby-transformer-pdf/package.json
  183. +4 −0 packages/gatsby-transformer-react-docgen/CHANGELOG.md
  184. +2 −2 packages/gatsby-transformer-react-docgen/package.json
  185. +4 −0 packages/gatsby-transformer-remark/CHANGELOG.md
  186. +2 −2 packages/gatsby-transformer-remark/package.json
  187. +4 −0 packages/gatsby-transformer-screenshot/CHANGELOG.md
  188. +2 −2 packages/gatsby-transformer-screenshot/package.json
  189. +4 −0 packages/gatsby-transformer-sharp/CHANGELOG.md
  190. +2 −2 packages/gatsby-transformer-sharp/package.json
  191. +4 −0 packages/gatsby-transformer-sqip/CHANGELOG.md
  192. +3 −3 packages/gatsby-transformer-sqip/package.json
  193. +4 −0 packages/gatsby-transformer-toml/CHANGELOG.md
  194. +2 −2 packages/gatsby-transformer-toml/package.json
  195. +4 −0 packages/gatsby-transformer-xml/CHANGELOG.md
  196. +2 −2 packages/gatsby-transformer-xml/package.json
  197. +4 −0 packages/gatsby-transformer-yaml/CHANGELOG.md
  198. +2 −2 packages/gatsby-transformer-yaml/package.json
  199. +4 −0 packages/gatsby/CHANGELOG.md
  200. +9 −9 packages/gatsby/package.json
  201. +4 −0 packages/graphql-skip-limit/CHANGELOG.md
  202. +2 −2 packages/graphql-skip-limit/package.json
  203. +3 −3 starters/blog/package-lock.json
  204. +1 −1 starters/blog/package.json
  205. +3 −3 starters/default/package-lock.json
  206. +1 −1 starters/default/package.json
3 changes: 2 additions & 1 deletion docs/docs/how-plugins-work.md
Original file line number Diff line number Diff line change
@@ -22,9 +22,10 @@ There are four standard plugin naming conventions for Gatsby:

- **`gatsby-source-*`** — a source plugin loads data from a given source (e.g. WordPress, MongoDB, the file system). Use this plugin type if you are connecting a new source of data to Gatsby.
- Example: [`gatsby-source-contentful`](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-contentful)
- Docs: [create a source plugin](/docs/create-source-plugin/)
- Docs: [creating a source plugin](/docs/creating-a-source-plugin/)
- **`gatsby-transformer-*`** — a transformer plugin converts data from one format (e.g. CSV, YAML) to a JavaScript object. Use this naming convention if your plugin will be transforming data from one format to another.
- Example: [`gatsby-transformer-yaml`](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-yaml)
- Docs: [creating a transformer plugin](/docs/creating-a-transformer-plugin/)
- **`gatsby-[plugin-name]-*`** — if a plugin is a plugin for another plugin 😅, it should be prefixed with the name of the plugin it extends (e.g. if it adds emoji to the output of `gatsby-transformer-remark`, call it `gatsby-remark-add-emoji`). Use this naming convention whenever your plugin will be included as a plugin in the `options` object of another plugin.
- Example: [`gatsby-remark-images`](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-images)
- **`gatsby-plugin-*`** — this is the most general plugin type. Use this naming convention if your plugin doesn’t meet the requirements of any other plugin types.
4 changes: 4 additions & 0 deletions packages/babel-plugin-remove-graphql-queries/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.6.2](https://github.com/gatsbyjs/gatsby/compare/babel-plugin-remove-graphql-queries@2.6.1...babel-plugin-remove-graphql-queries@2.6.2) (2019-03-11)

**Note:** Version bump only for package babel-plugin-remove-graphql-queries

## [2.6.1](https://github.com/gatsbyjs/gatsby/compare/babel-plugin-remove-graphql-queries@2.6.0...babel-plugin-remove-graphql-queries@2.6.1) (2019-02-22)

**Note:** Version bump only for package babel-plugin-remove-graphql-queries
4 changes: 2 additions & 2 deletions packages/babel-plugin-remove-graphql-queries/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "babel-plugin-remove-graphql-queries",
"version": "2.6.1",
"version": "2.6.2",
"author": "Jason Quense <monastic.panic@gmail.com>",
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"babel-preset-gatsby-package": "^0.1.3"
"babel-preset-gatsby-package": "^0.1.4"
},
"license": "MIT",
"main": "index.js",
4 changes: 4 additions & 0 deletions packages/babel-preset-gatsby-package/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.1.4](https://github.com/gatsbyjs/gatsby/compare/babel-preset-gatsby-package@0.1.3...babel-preset-gatsby-package@0.1.4) (2019-03-11)

**Note:** Version bump only for package babel-preset-gatsby-package

<a name="0.1.3"></a>

## [0.1.3](https://github.com/gatsbyjs/gatsby/compare/babel-preset-gatsby-package@0.1.2...babel-preset-gatsby-package@0.1.3) (2018-11-29)
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`babel-preset-gatsby-package in browser mode specifies proper presets 1`] = `
Array [
Array [
"@babel/preset-env",
Object {
"debug": false,
"loose": true,
"modules": "commonjs",
"shippedProposals": true,
"targets": Object {
"browsers": Array [
"last 2 versions",
"not ie <= 11",
"not android 4.4.3",
],
},
"useBuiltIns": false,
},
],
Array [
"@babel/preset-react",
Object {
"development": true,
},
],
"@babel/preset-flow",
]
`;

exports[`babel-preset-gatsby-package in browser mode specifies proper presets for debugging 1`] = `
Array [
Array [
"@babel/preset-env",
Object {
"debug": true,
"loose": true,
"modules": "commonjs",
"shippedProposals": true,
"targets": Object {
"browsers": Array [
"last 2 versions",
"not ie <= 11",
"not android 4.4.3",
],
},
"useBuiltIns": false,
},
],
Array [
"@babel/preset-react",
Object {
"development": true,
},
],
"@babel/preset-flow",
]
`;

exports[`babel-preset-gatsby-package in browser mode specifies the proper plugins 1`] = `
Array [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-transform-runtime",
"@babel/plugin-syntax-dynamic-import",
]
`;

exports[`babel-preset-gatsby-package in node mode specifies proper presets 1`] = `
Array [
Array [
"@babel/preset-env",
Object {
"debug": false,
"loose": true,
"modules": "commonjs",
"shippedProposals": true,
"targets": Object {
"node": "current",
},
"useBuiltIns": "entry",
},
],
Array [
"@babel/preset-react",
Object {
"development": true,
},
],
"@babel/preset-flow",
]
`;

exports[`babel-preset-gatsby-package in node mode specifies proper presets for debugging 1`] = `
Array [
Array [
"@babel/preset-env",
Object {
"debug": true,
"loose": true,
"modules": "commonjs",
"shippedProposals": true,
"targets": Object {
"node": "current",
},
"useBuiltIns": "entry",
},
],
Array [
"@babel/preset-react",
Object {
"development": true,
},
],
"@babel/preset-flow",
]
`;

exports[`babel-preset-gatsby-package in node mode specifies the proper plugins 1`] = `
Array [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-transform-runtime",
"@babel/plugin-syntax-dynamic-import",
]
`;

exports[`babel-preset-gatsby-package in production mode specifies proper presets for browser mode 1`] = `
Array [
Array [
"@babel/preset-env",
Object {
"debug": false,
"loose": true,
"modules": "commonjs",
"shippedProposals": true,
"targets": Object {
"browsers": Array [
"last 4 versions",
"safari >= 7",
"ie >= 9",
],
},
"useBuiltIns": false,
},
],
Array [
"@babel/preset-react",
Object {
"development": false,
},
],
"@babel/preset-flow",
]
`;

exports[`babel-preset-gatsby-package in production mode specifies proper presets for node mode 1`] = `
Array [
Array [
"@babel/preset-env",
Object {
"debug": false,
"loose": true,
"modules": "commonjs",
"shippedProposals": true,
"targets": Object {
"node": 6,
},
"useBuiltIns": "entry",
},
],
Array [
"@babel/preset-react",
Object {
"development": false,
},
],
"@babel/preset-flow",
]
`;
Loading