@ta-interaktiv/babel-preset-react-component
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -0,1 +1,9 @@ | ||
<a name="0.1.3"></a> | ||
## [0.1.3](https://gitlab.com/ta-interaktiv/modules/babel-preset-react-component/compare/v0.1.2...v0.1.3) (2018-01-09) | ||
### Bug Fixes | ||
* use CommonJS module syntax for test environment (e.g. Jest) ([9df7a25](https://gitlab.com/ta-interaktiv/modules/babel-preset-react-component/commit/9df7a25)) | ||
<a name="0.1.2"></a> | ||
@@ -2,0 +10,0 @@ |
@@ -8,3 +8,3 @@ // Define in what environment we are | ||
// Default is CommonJS | ||
if (env === 'default' || env === 'commonjs') { | ||
if (env === 'default' || env === 'commonjs' || env === 'test') { | ||
presets.push([require('babel-preset-env'), { modules: 'commonjs' }]) | ||
@@ -18,3 +18,3 @@ } | ||
// For test environments (e.g. NodeJS?) | ||
// For non-test environments (e.g. NodeJS?) | ||
if (env !== 'test') { | ||
@@ -21,0 +21,0 @@ plugins.push(require('babel-plugin-transform-object-rest-spread')) |
{ | ||
"name": "@ta-interaktiv/babel-preset-react-component", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Babel preset for developing reusable React components.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111623