Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ta-interaktiv/babel-preset-react-component

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ta-interaktiv/babel-preset-react-component - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

8

CHANGELOG.md

@@ -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 @@

4

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc