babel-preset-kyt-core
Advanced tools
Comparing version 0.3.0-alpha.1 to 0.3.0-alpha.2
@@ -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 @@ |
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
7600
94
95