@knit/babel-preset-socks-react
Advanced tools
Comparing version 0.4.0 to 0.5.0
18
index.js
@@ -1,4 +0,4 @@ | ||
'use strict'; | ||
"use strict"; | ||
var _assign = require('babel-runtime/core-js/object/assign'); | ||
var _assign = require("babel-runtime/core-js/object/assign"); | ||
@@ -15,7 +15,7 @@ var _assign2 = _interopRequireDefault(_assign); | ||
targets: { | ||
browsers: ['last 2 versions'] | ||
browsers: ["last 2 versions"] | ||
} | ||
}, opts, { modules: process.env.JS_NEXT ? false : 'commonjs' }); | ||
var presets = [require.resolve('babel-preset-react'), [require.resolve('babel-preset-env'), options]]; | ||
var buildPlugins = [require.resolve('babel-plugin-transform-class-properties'), [require.resolve('babel-plugin-transform-object-rest-spread'), { | ||
}, opts, { modules: process.env.JS_NEXT ? false : "commonjs" }); | ||
var presets = [require.resolve("babel-preset-react"), [require.resolve("babel-preset-env"), options]]; | ||
var buildPlugins = [require.resolve("babel-plugin-transform-class-properties"), [require.resolve("babel-plugin-transform-object-rest-spread"), { | ||
useBuiltIns: true | ||
@@ -25,9 +25,9 @@ }]]; | ||
// Adds component stack to warning messages | ||
require.resolve('babel-plugin-transform-react-jsx-source'), | ||
require.resolve("babel-plugin-transform-react-jsx-source"), | ||
// Adds __self attribute to JSX which React will use for some warnings | ||
require.resolve('babel-plugin-transform-react-jsx-self')]; | ||
require.resolve("babel-plugin-transform-react-jsx-self")]; | ||
var env = process.env.BABEL_ENV || process.env.NODE_ENV; | ||
var plugins = env === 'development' ? [].concat(buildPlugins, devPlugins) : buildPlugins; | ||
var plugins = env === "development" ? [].concat(buildPlugins, devPlugins) : buildPlugins; | ||
@@ -34,0 +34,0 @@ return { |
@@ -12,3 +12,3 @@ { | ||
"engines": { | ||
"node": ">=6", | ||
"node": ">=4", | ||
"npm": ">=3" | ||
@@ -22,3 +22,3 @@ }, | ||
"description": "A pair of babel socks", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"dependencies": { | ||
@@ -31,5 +31,3 @@ "babel-plugin-transform-class-properties": "^6.23.0", | ||
"babel-preset-react": "^6.23.0" | ||
}, | ||
"peerDependencies": {}, | ||
"optionalDependencies": {} | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
2206
3