Skip to content

Commit

Permalink
fix: check typeof decoratorsBeforeExport
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Oct 9, 2019
1 parent 24d3e4a commit 336dc46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-preset-proposal-typescript",
"version": "1.4.3",
"version": "1.4.4",
"description": "Yet another Babel preset for TypeScript, only transforms proposals which TypeScript does not support now.",
"repository": "[email protected]/rx-ts/babel-preset-proposal-typescript.git",
"author": "JounQin <[email protected]>",
Expand Down
12 changes: 8 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ export default declare((api, opts) => {
plugins: [
[
syntaxDecorators,
{
decoratorsBeforeExport,
legacy: decoratorsLegacy,
},
Object.assign(
{
legacy: decoratorsLegacy,
},
typeof decoratorsBeforeExport === 'boolean' && {
decoratorsBeforeExport,
},
),
],
syntaxDynamicImport,
[
Expand Down

0 comments on commit 336dc46

Please sign in to comment.