Skip to content

Commit

Permalink
breaking: enable allowNamespaces by default
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Feb 5, 2021
1 parent 74ed698 commit 4bf8ee8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/babel-plugin-transform-typescript/src/index.js
Expand Up @@ -53,13 +53,15 @@ export default declare((api, opts) => {
const {
jsxPragma = "React.createElement",
jsxPragmaFrag = "React.Fragment",
allowNamespaces = false,
onlyRemoveTypeImports = false,
} = opts;

if (!process.env.BABEL_8_BREAKING) {
// eslint-disable-next-line no-var
var { allowDeclareFields = false } = opts;
var { allowDeclareFields = false, allowNamespaces = false } = opts;
} else {
// eslint-disable-next-line no-var,no-redeclare
var { allowNamespaces = true } = opts;
}

const classMemberVisitors = {
Expand Down

0 comments on commit 4bf8ee8

Please sign in to comment.