Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
babel-preset-modern-browser-extension
Advanced tools
Babel preset used for creating browser extensions. Supports React and TypeScript.
Babel preset used for creating browser extensions. Supports React and TypeScript.
npm i babel-preset-modern-browser-extension --save-dev
In your .babelrc
(or any other Babel config file) file, add:
{
"presets": ["modern-browser-extension"]
}
"dependencies": {
"@babel/plugin-proposal-decorators"
"@babel/plugin-syntax-dynamic-import"
"@babel/preset-env"
"@babel/preset-react"
"@babel/preset-typescript"
"babel-plugin-react-require"
"babel-plugin-transform-react-remove-prop-types"
}
mode
The bundle mode.
"production" | "development"
, defaults to "development"
{
"presets": [["modern-extensions", {"mode": "development"}]]
}
targets
Target used by Babel. Relies on
browserlist
{ [string]: number | string }
, defaults to last 1 version
of each browser.
{
"presets": [
[
"modern-extensions",
{
"targets": {
"chrome": "last 1 version",
"edge": "last 1 version",
"firefox": "last 1 version",
"opera": "last 1 version",
"safari": "last 1 version",
"samsung": "last 1 version"
}
}
]
]
}
debug
Enable Babel debug mode.
boolean
, defaults to false
{
presets: [['modern-extensions', {debug: false}]]
}
typescript
Whether or not to use TypeScript.
boolean
, defaults to false
{
presets: [['modern-extensions', {typescript: false}]]
}
MIT (c) Cezar Augusto.
FAQs
Babel preset used for creating browser extensions. Supports React and TypeScript.
The npm package babel-preset-modern-browser-extension receives a total of 52 weekly downloads. As such, babel-preset-modern-browser-extension popularity was classified as not popular.
We found that babel-preset-modern-browser-extension demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.