Skip to content

Commit

Permalink
Add onlyRemoveTypeImports to preset-typescript (#11179)
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism committed Mar 1, 2020
1 parent 60989bb commit 6399051
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/babel-preset-typescript/src/index.js
Expand Up @@ -5,11 +5,12 @@ export default declare(
(
api,
{
jsxPragma,
allExtensions = false,
isTSX = false,
allowNamespaces,
allowDeclareFields,
allowNamespaces,
jsxPragma,
isTSX = false,
onlyRemoveTypeImports,
},
) => {
api.assertVersion(7);
Expand All @@ -27,10 +28,11 @@ export default declare(
}

const pluginOptions = isTSX => ({
jsxPragma,
isTSX,
allowNamespaces,
allowDeclareFields,
allowNamespaces,
isTSX,
jsxPragma,
onlyRemoveTypeImports,
});

return {
Expand Down

0 comments on commit 6399051

Please sign in to comment.