New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-cozy-app

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-cozy-app - npm Package Compare versions

Comparing version 1.5.3 to 1.6.0

13

CHANGELOG.md

@@ -6,2 +6,15 @@ # Change Log

# [1.6.0](https://github.com/cozy/cozy-libs/compare/babel-preset-cozy-app@1.5.3...babel-preset-cozy-app@1.6.0) (2019-07-19)
### Features
* Activate babel helpers by default ([ab62bdb](https://github.com/cozy/cozy-libs/commit/ab62bdb))
* Add lib option ([45469b5](https://github.com/cozy/cozy-libs/commit/45469b5))
* Do not let lib add modules:false in Jest ([ee4058c](https://github.com/cozy/cozy-libs/commit/ee4058c))
## [1.5.3](https://github.com/cozy/cozy-libs/compare/babel-preset-cozy-app@1.5.2...babel-preset-cozy-app@1.5.3) (2019-07-19)

@@ -8,0 +21,0 @@

18

index.js

@@ -52,3 +52,3 @@ 'use strict'

default: {
helpers: false,
helpers: true,
regenerator: true

@@ -73,2 +73,18 @@ },

if (presetOptions.lib) {
const libConfigs = []
// Jest does not understand ES6 import by default
if (process.env.BABEL_ENV !== 'test') {
libConfigs.push({
presetEnv: {
// Libraries are shipped with es6 imports for downstream bundler
// to be able to prune unused modules away
modules: false
}
})
}
merge(presetOptions, ...libConfigs)
}
const {

@@ -75,0 +91,0 @@ node,

4

package.json
{
"name": "babel-preset-cozy-app",
"version": "1.5.3",
"version": "1.6.0",
"description": "Babel preset for Cozy Application (Cozy Cloud)",

@@ -31,3 +31,3 @@ "author": "CPatchane <code@patchane.com>",

},
"gitHead": "36c8b60f4772ad6ae679203dbd359877faff40d1"
"gitHead": "bf0fe14ef0cb2d9a3f86105fefe2ea3048943e2c"
}

@@ -93,4 +93,9 @@ <h1 align="center">Babel Preset Cozy App</h1>

#### Preset and plugin options
#### Lib option
When the lib option is activated, `import/export` nodes are not transpiled. This gives the downstream bundler
the ability to prune unused module away. It works by configuring babel-preset-env with `{"modules": false}`.
### Advanced
You can have control on the options passed to `babel-preset-env` and `babel-plugin-transform-runtime`:

@@ -118,3 +123,3 @@

https://babeljs.io/docs/en/babel-preset-env#modules
https://babeljs.io/docs/en/babel-plugin-transform-runtime#helpers
https://babeljs.io/docs/en/babel-plugin-transform-runtime#helpers

@@ -121,0 +126,0 @@ ## Community

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