![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
babel-preset-cozy-app
Advanced tools
A shareable configuration for Cozy Applications or Scripts.
This package is a Babel preset already used by create-cozy-app
.
To install:
yarn add --dev babel-preset-cozy-app
If you started your project using create-cozy-app
, you don't need to do anything, you should already have a .babelrc
configured to used this preset.
If you want to use this preset, you first need to have Babel installed (cf documentation).
Then, in a file named .babelrc
(the Babel configuration file), you can use the preset using the following way:
{
"presets": ["cozy-app"]
}
node
(boolean): false
by defaultBy default, this babel preset targets browsers but you can target node by using the node
option:
{
"presets": [
["cozy-app", {
"node": true
}]
]
}
react
(boolean): true
by defaultBy default, this babel preset uses the react
preset (babel-preset-react
) but you can disable this behaviour with the react
option to false
as following:
{
"presets": [
["cozy-app", {
"react": false
}]
]
}
transformRegenerator
(boolean): true
by default (for browsers only)By default, this babel preset uses babel-plugin-transform-runtime
to transform regenerator functions on the runtime. But sometimes (not always) it could break CSPs due to some eval usage so you can disable this behaviour with the transformRegenerator
option to false
as following:
{
"presets": [
["cozy-app", {
"transformRegenerator": false
}]
]
}
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}
.
You can have control on the options passed to babel-preset-env
and babel-plugin-transform-runtime
:
presetEnv
will be passed to babel-preset-env
transformRuntime
will be passed to babel-plugin-transform-runtime
{
"presets": [
["cozy-app", {
"presetEnv": { "modules": false },
"transformRuntime": { "helpers": true }
}]
]
}
In this case, we do not want preset-env
to touch to import/export
and want the inlined Babel helpers
to be replaced by imports from babel-runtime
.
See the options on the official docs :
https://babeljs.io/docs/en/babel-preset-env#modules https://babeljs.io/docs/en/babel-plugin-transform-runtime#helpers
Cozy is a platform that brings all your web services in the same private space. With it, your webapps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one's tracking you.
You can reach the Cozy Community by:
babel-preset-cozy-app
is distributed under the MIT license.
FAQs
Babel preset for Cozy Application (Cozy Cloud)
The npm package babel-preset-cozy-app receives a total of 7 weekly downloads. As such, babel-preset-cozy-app popularity was classified as not popular.
We found that babel-preset-cozy-app demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.