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

babel-preset-kyt-core

Package Overview
Dependencies
Maintainers
3
Versions
266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-kyt-core - npm Package Compare versions

Comparing version 0.3.0-alpha.1 to 0.3.0-alpha.2

15

lib/index.js

@@ -7,2 +7,3 @@ /* eslint-disable vars-on-top */

var babelSyntaxDynamicImport = require('babel-plugin-syntax-dynamic-import');
var merge = require('lodash.merge');

@@ -16,4 +17,4 @@ module.exports = function getPresetCore(context, opts) {

modules: false,
uglify: true,
targets: {
uglify: true,
browsers: ['>1%', 'last 4 versions', 'not ie < 11'],

@@ -42,13 +43,5 @@ },

if (process.env.KYT_ENV_TYPE === 'client') {
envOptions = Object.assign(
{},
clientEnvOptions,
userEnvOptions.client ? userEnvOptions.client : {}
);
envOptions = merge({}, clientEnvOptions, userEnvOptions.client ? userEnvOptions.client : {});
} else if (process.env.KYT_ENV_TYPE === 'server') {
envOptions = Object.assign(
{},
serverEnvOptions,
userEnvOptions.server ? userEnvOptions.server : {}
);
envOptions = merge({}, serverEnvOptions, userEnvOptions.server ? userEnvOptions.server : {});
} else {

@@ -55,0 +48,0 @@ envOptions = clientEnvOptions;

{
"name": "babel-preset-kyt-core",
"version": "0.3.0-alpha.1",
"version": "0.3.0-alpha.2",
"description": "An opinionated babel preset, best used with kyt",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -29,4 +29,8 @@ ## babel-preset-kyt-core

### `0.3.0-alpha.1` - 09/13/17
### `0.3.0-alpha.2` - 09/18/17
- Fixes bugs introduced in the 0.3.0-alpha.1 release where user `envOptions` overrides were not being deeply merged and the `uglify` option was not nested in the `targets` param.
### `0.3.0-alpha.1` - 09/17/17
- Replaces `babel-preset-latest` with `babel-preset-env`. By default, the following `client` preset-env browser targets are used:

@@ -33,0 +37,0 @@

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