babel-preset-gatsby
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="0.1.3"></a> | ||
## [0.1.3](https://github.com/gatsbyjs/gatsby/compare/babel-preset-gatsby@0.1.2...babel-preset-gatsby@0.1.3) (2018-11-05) | ||
### Bug Fixes | ||
- ensure babel-preset-gatsby can be used with unit tests ([#9629](https://github.com/gatsbyjs/gatsby/issues/9629)) ([401df07](https://github.com/gatsbyjs/gatsby/commit/401df07)), closes [#9614](https://github.com/gatsbyjs/gatsby/issues/9614) | ||
<a name="0.1.2"></a> | ||
@@ -8,0 +16,0 @@ |
@@ -24,3 +24,3 @@ "use strict"; | ||
if (!targets) { | ||
if (stage === `build-html`) { | ||
if (stage === `build-html` || stage === `test`) { | ||
targets = { | ||
@@ -39,3 +39,3 @@ node: `current` | ||
loose: true, | ||
modules: false, | ||
modules: stage === `test` ? `commonjs` : false, | ||
useBuiltIns: `usage`, | ||
@@ -42,0 +42,0 @@ targets |
{ | ||
"name": "babel-preset-gatsby", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"author": "Philipp Spiess <hello@philippspiess.com>", | ||
@@ -23,3 +23,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "dbd71c33ced0829c5f4bc552127ef80b4a7398a5" | ||
"gitHead": "864ac048e573add87399b0e5a964fe127184f4bb" | ||
} |
5856