File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,13 @@ npm i -D babel-preset-proposal-typescript
5050
5151## Options
5252
53- | option | description | defaults |
54- | ------------------ | ------------------------------------------------------------------ | ------------------------------------- |
55- | ` classLoose ` | whether to use loose mode for class properties and private methods | ` true ` |
56- | ` decoratorsLegacy ` | whether to use legacy decorators semantic | ` true ` |
57- | ` isTSX ` | whether to enable ` jsx ` plugin with ` typescript ` | ` false ` , ` true ` but for ` /\.[jt]sx$/ ` |
58- | ` pipelineOperator ` | implementation of pipeline operator | ` "minimal" ` |
53+ | option | description | defaults |
54+ | ------------------------ | -------------------------------------------------------------------------------------------------------- | ------------------------------------- |
55+ | ` classLoose ` | whether to use loose mode for class properties and private methods | ` true ` |
56+ | ` decoratorsBeforeExport ` | See [ Babel Document] ( https://babeljs.io/docs/en/babel-plugin-proposal-decorators#decoratorsbeforeexport ) | N/A |
57+ | ` decoratorsLegacy ` | whether to use legacy decorators semantic | ` true ` |
58+ | ` isTSX ` | whether to enable ` jsx ` plugin with ` typescript ` | ` false ` , ` true ` but for ` /\.[jt]sx$/ ` |
59+ | ` pipelineOperator ` | implementation of pipeline operator | ` "minimal" ` |
5960
6061## Usage
6162
Original file line number Diff line number Diff line change 11{
22 "name" : " babel-preset-proposal-typescript" ,
3- "version" : " 1.4.2 " ,
3+ "version" : " 1.4.3 " ,
44 "description" : " Yet another Babel preset for TypeScript, only transforms proposals which TypeScript does not support now." ,
55 "repository" : " git@github.com/rx-ts/babel-preset-proposal-typescript.git" ,
66 "author" : " JounQin <admin@1stg.me>" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export default declare((api, opts) => {
2222
2323 const {
2424 classLoose = true ,
25+ decoratorsBeforeExport,
2526 decoratorsLegacy = true ,
2627 isTSX,
2728 pipelineOperator = 'minimal' ,
@@ -32,6 +33,7 @@ export default declare((api, opts) => {
3233 [
3334 syntaxDecorators ,
3435 {
36+ decoratorsBeforeExport,
3537 legacy : decoratorsLegacy ,
3638 } ,
3739 ] ,
You can’t perform that action at this time.
0 commit comments