Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
babel-preset-gatsby-package
Advanced tools
This [Babel](https://babeljs.io/) preset is used for our internal packages. If you're looking for the preset a **Gatsby Site** can use, please refer to [babel-preset-gatsby](https://github.com/gatsbyjs/gatsby/blob/master/packages/babel-preset-gatsby/READM
This Babel preset is used for our internal packages. If you're looking for the preset a Gatsby Site can use, please refer to babel-preset-gatsby instead.
@babel/preset-env
@babel/preset-react
@babel/preset-flow
@babel/plugin-proposal-class-properties
@babel/plugin-proposal-optional-chaining
@babel/plugin-transform-runtime
Install babel-preset-gatsby-package
and add a .babelrc
file with the following content to the root of your project:
npm install --dev babel-preset-gatsby-package
{
"presets": ["babel-preset-gatsby-package"]
}
browser
boolean
, defaults to false
.
Defines if @babel/preset-env
is configured to target browsers or Node.js environments.
debug
boolean
, defaults to false
.
Outputs the targets/plugins used and the version specified in plugin data version to console.log
.
nodeVersion
string
, defaults to 10.13
Allows the Node.js version target to be modified per @babel/preset-env
documentation
FAQs
This [Babel](https://babeljs.io/) preset is used for our internal packages. If you're looking for the preset a **Gatsby Site** can use, please refer to [babel-preset-gatsby](https://github.com/gatsbyjs/gatsby/blob/master/packages/babel-preset-gatsby/READM
The npm package babel-preset-gatsby-package receives a total of 9,789 weekly downloads. As such, babel-preset-gatsby-package popularity was classified as popular.
We found that babel-preset-gatsby-package demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.