
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@wpw/babel-preset-base
Advanced tools
Babel preset for @wps/scripts, without react specific transforms.
@wpw/babel-preset-base
This is the default base babel preset to include in non-react projects. It is
based on @babel/preset-env
and includes some stage-3
plugins.
extends
@babel/preset-env
.
You should add .browserslistrc
to your project to target your environment.
More information can be found here.
If you have incorporated using @wpw/cli
, it is already taken care for you.
The following babel plugins from stage-3
are included as dependency. They will
be loaded by default, but you can disable it through options.
@babel/plugin-syntax-dynamic-import
@babel/plugin-syntax-import-meta
@babel/plugin-proposal-class-properties
- with option { "loose": false }
.@babel/plugin-proposal-json-strings
yarn add @wpw/babel-preset-base --dev
In your .babelrc
put
{
"extends": ["@wpw/base"]
}
or in your babel.config.js
/babelrc.js
module.exports = {
extends: ['@wpw/base'],
};
NOTE:
babel.config.js
is used for project wide configuration. Please refer to the docs to find out which config formatting to use.
@wpw/babel-preset-base
can be configured to select which stage-3
plugins to
exclude.
babelrc.js
module.exports = {
extends: [
'@wpw/base',
{
noDynamicImport: true, // disable @babel/plugin-syntax-dynamic-import
target: 'not dead, > 0.25%', // browserslist query to pass to @babel/preset-env
},
],
};
noDynamicImport
boolean
, defaults to false
.
Set to true to disable @babel/plugin-syntax-dynamic-import
.
noImportMeta
boolean
, defaults to false
.
Set to true to disable @babel/plugin-syntax-import-meta
.
noClassProperties
boolean
, defaults to false
.
Set to true to disable @babel/plugin-proposal-class-properties
.
noJsonStrings
boolean
, defaults to false
.
Set to true to disable @babel/plugin-proposal-json-strings
.
@babel/preset-env
What-ever else you pass to the config, is passed directly to @babel/preset-env
. This
gives you more control on how to configure the most stable env
preset.
Please read the documentation for available options.
In most cases, you just need to put a browser query in your browserslist
like
> 0.25%, not dead
and you are good to go.
You can put it under browserslist
directive under package.json
or in a separate
.browserslistrc
file.
We recommend .browserslistrc
because it is shared across many tools. If you bootstrap
your project using @wpw/cli
, then it will be created automatically.
FAQs
Babel preset for @wps/scripts, without react specific transforms.
We found that @wpw/babel-preset-base demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.