Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@chialab/babel-preset
Advanced tools
Readme
Babel preset for Chialab projects
A custom set of plugins, based on the @babel/preset-env
, which includes:
@babel/plugin-proposal-class-properties
Support for class private and public fields@babel/plugin-proposal-decorators
for decorators support@babel/plugin-syntax-dynamic-import
for dynamic import()
syntax supportbabel-plugin-transform-inline-environment-variables
: process.env
replacementsbabel-plugin-istanbul
: code coverage@babel/plugin-transform-react-jsx
: transpile JSXbabel-plugin-jsx
: auto import JSX pragmababel-plugin-jsx-template
: auto export a function with a JSX templatebabel-plugin-assertions
: polyfill assertion statements with Chaibabel-plugin-transform-commonjs
: try to convert CommonJS modules to ES6 modulesnpm install @chialab/babel-preset -D
# or
yarn add @chialab/babel-preset -D
Add to the .babelrc
file the preset:
{
"presets": [
["@chialab/babel-preset", { ... }]
],
"plugins": [ ... ]
}
The preset inherits all the @babel/preset-env
options, available here.
Name | Accepts | Default | Description |
---|---|---|---|
env | Boolean | true | Should use @babel/preset-env . |
pragma | String | - | The JSX pragma. |
pragmaModule | String | - | The module path which exports the pragma. |
pragmaDefault | Boolean | false | Import pragma as default member. |
assertions | Boolean | false | Polyfill assertion statements with Chai. |
coverage | Boolean | false | Should enable code coverage. |
coverageInclude | Array | [] | A list of files to include in the coverage. |
coverageExclude | Array | [] | A list of files to exclude from the coverage. |
transformCommonjs | Boolean | false | Should convert CommonJS modules. |
transformCommonjsCache | Boolean | false | A Map instance to use as cache for the tranformer. |
FAQs
Babel preset for Chialab projects.
The npm package @chialab/babel-preset receives a total of 34 weekly downloads. As such, @chialab/babel-preset popularity was classified as not popular.
We found that @chialab/babel-preset demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.