Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
@repay/babel-preset
Advanced tools
Readme
@repay/babel-preset
Babel preset used by @repaygithub
Install via the command line using yarn or npm
@babel/core
,@babel/runtime
, andcore-js
are peer dependencies, which means you must install them yourself.
yarn add --dev @repay/babel-preset @babel/core @babel/runtime core-js
# OR
npm install --save-dev @repay/babel-preset @babel/core @babel/runtime core-js
Add the preset to your .babelrc or equivalent
{
"presets": ["@repay/babel-preset"]
}
All Proposals that have reached stage-4 and are implemented by @babel/preset-env
Class Properties (does not include private fields)
class Accordian extends Component {
state = { isOpen: this.props.openOnMount || false };
// using assignment like below,
// `this` references the class instance always
toggleOpen = () =>
this.setState(s => {
isOpen: !s.isOpen;
});
}
Object rest spread (e.g. let obj = {...props}
)
There are two options you can pass to control polyfills:
coreJsPolyfill
(default: false
): When this option is true
, the useBuiltIns: 'usage'
option will be passed into @babel/preset-env
to automatically
add in only the necessary CoreJS polyfills needed.regeneratorPolyfill
(default: false
): When this option is true
, the regenerator: true
option will be passed into the @babel/plugin-transform-runtime
plugin.FAQs
Babel preset for front end applications
We found that @repay/babel-preset demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).