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-kyt-core
Advanced tools
An opinionated Babel preset, best used with kyt.
This preset is used as a default if a kyt project does not include a .babelrc It is also included as part of babel-preset-kyt-react
To install:
npm install babel-preset-kyt-core --save
{
presets: [
"babel-preset-kyt-core"
]
}
(see documentation for Babel preset options)
includeRuntime
(Boolean
) - whether or not to include babel-plugin-transform-runtime
; default: false
0.3.0-alpha.6
- 10/06/17babel-preset-env
useBuiltIns
option to take advantage of only polyfilling server builds. To take advantage of this functionality, you need to add babel-polyfill
as a dependency
and import it at the top of src/server/index.js
.0.3.0-alpha.5
- 10/03/17babel-preset-env
useBuiltIns
option to take advantage of only polyfilling what's needed. To take advantage of this functionality, you need to add babel-polyfill
as a dependency
and import it at the top of src/client/index.js
.0.3.0-alpha.4
- 09/19/17node
environment when KYT_ENV_TYPE=test
.0.3.0-alpha.3
- 09/19/17KYT_ENV_TYPE=test
support for test
runs. Similar to the client/server
options, the test
option can be overridden in envOptions
.0.3.0-alpha.2
- 09/18/17envOptions
overrides were not being deeply merged and the uglify
option was not nested in the targets
param.0.3.0-alpha.1
- 09/17/17babel-preset-latest
with babel-preset-env
. By default, the following client
preset-env browser targets are used:modules: false,
targets: {
browsers: ['>1%', 'last 4 versions', 'not ie < 11']
}
Which at the timing of this release, targets the following browsers/OSs:
{
"chrome": "49",
"android": "4.2",
"edge": "12",
"firefox": "52",
"ie": "11",
"ios": "9",
"safari": "9"
}
If you need to target the server
, then you can set process.env.KYT_ENV_TYPE
to server
. The following preset-env server targets are used:
modules: false,
targets: {
node: true
}
You can extend the default preset-env client
/server
targets by passing in your own options into a .babelrc configuration under a envOptions
key. For example:
{
"presets": [
[
"kyt-core", {
"envOptions": {
"client": {
"debug": true,
"targets": {
"browsers": ["last 2 versions"]
}
},
"server": {
"modules": true,
"targets": { "node": false }
},
},
},
],
],
}
0.2.0
- 03/23/17babel-plugin-syntax-dynamic-import
to allow parsing of dynamic import()
.FAQs
An opinionated babel preset, best used with kyt
The npm package babel-preset-kyt-core receives a total of 7,598 weekly downloads. As such, babel-preset-kyt-core popularity was classified as popular.
We found that babel-preset-kyt-core demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.