
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
@4c/babel-preset
Advanced tools
@4c/babel-preset
A configurable, batteries included, babel preset for libraries and web apps.
Includes the following presets and plugins:
yarn add @4c/babel-preset -D
Without options:
{
"presets": ["@4c"]
}
With options;
{
"presets": [
[
"@4c",
{
"target": "web-app",
"modules": false,
"intl": { "prefix" "@mylib" },
}
]
]
}
In addition to the options below, all preset-env are
accepted to be overridden when the defaults aren't sufficient. By default the preset
picks a set of known safe combinations tailored to the chosen target
.
target
'web' | 'web-app' | 'node'
, defaults to 'web'
The overall build environment target. Used to set some smart presets as well as
configure the preset-env
targets.
node
targets
set to node 10
in production and current
in developmentmodules
set to commonjs
intl
is disabledweb
targets
uses the browserlist config is (determined by .browserslistrc, etc) if available or
defaults to ['ie >= 11', 'last 2 Edge versions', 'last 4 Chrome versions', 'last 4 Firefox versions', 'last 2 Safari versions'];
web-app
web
modules
to false
runtime
to true
development
boolean
, defaults to false
Uses a more development friendly set of targets
as well as toggles development plugins for react (see. When true
the current
version of node for node targets and
esmodules
for web targets. You can read more here.
modules
"commonjs' | false
, defaults to false
except when target
is 'web-app'
and 'commonjs'
otherwise
The preset-env modules option. controls the output module format
runtime
Turns on the babel runtime transform.
intl
boolean | { prefix: string, messagesDir: string }
Configures the react-intl
babel plugin to extract and output localized strings
prefixed by the package name or provided prefix
FAQs
4Catalyzer babel preset
The npm package @4c/babel-preset receives a total of 431 weekly downloads. As such, @4c/babel-preset popularity was classified as not popular.
We found that @4c/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
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.