Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
babel-preset-proposal-typescript
Advanced tools
Yet another Babel preset for TypeScript, only transforms proposals which TypeScript does not support now.
Yet another Babel preset for TypeScript, only transforms proposals which TypeScript does not support now.
So that you can use babel to transform proposals which are current in stage 0-2 and TypeScript team will not implement them temporarily.
# yarn
yarn add -D babel-preset-proposal-typescript
# npm
npm i -D babel-preset-proposal-typescript
.babelrc
(Recommended).babelrc
{
"presets": ["proposal-typescript"]
}
babel input.ts --presets proposal-typescript > output.ts
require('@babel/core').transform('code', {
presets: ['proposal-typescript'],
})
Pipe codes through babel-loader
to ts-loader
or awesome-typescript-loader
.
loader = {
test: /\.ts$/,
use: [
{
loader: 'ts-loader',
},
{
loader: 'babel-loader',
options: {
presets: ['proposal-typescript'],
},
},
],
}
option | description | defaults |
---|---|---|
decoratorsLegacy | whether to use legacy decorators semantic | true |
isTSX | whether to enable jsx plugin with typescript | false , true for /\.[jt]sx$/ |
pipelineOperator | implementation of pipeline operator | "minimal" |
FAQs
Yet another Babel preset for TypeScript, only transforms proposals which TypeScript does not support now.
We found that babel-preset-proposal-typescript demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.