@babel/preset-typescript
Advanced tools
Comparing version 7.3.3 to 7.6.0
@@ -33,3 +33,4 @@ "use strict"; | ||
allExtensions = false, | ||
isTSX = false | ||
isTSX = false, | ||
allowNamespaces | ||
}) => { | ||
@@ -54,3 +55,4 @@ api.assertVersion(7); | ||
jsxPragma, | ||
isTSX | ||
isTSX, | ||
allowNamespaces | ||
}]] | ||
@@ -60,3 +62,4 @@ }] : [{ | ||
plugins: [[_pluginTransformTypescript().default, { | ||
jsxPragma | ||
jsxPragma, | ||
allowNamespaces | ||
}]] | ||
@@ -67,3 +70,4 @@ }, { | ||
jsxPragma, | ||
isTSX: true | ||
isTSX: true, | ||
allowNamespaces | ||
}]] | ||
@@ -70,0 +74,0 @@ }] |
{ | ||
"name": "@babel/preset-typescript", | ||
"version": "7.3.3", | ||
"version": "7.6.0", | ||
"description": "Babel preset for TypeScript.", | ||
@@ -17,3 +17,3 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-typescript", | ||
"@babel/helper-plugin-utils": "^7.0.0", | ||
"@babel/plugin-transform-typescript": "^7.3.2" | ||
"@babel/plugin-transform-typescript": "^7.6.0" | ||
}, | ||
@@ -24,6 +24,6 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.3.3", | ||
"@babel/core": "^7.6.0", | ||
"@babel/helper-plugin-test-runner": "^7.0.0" | ||
}, | ||
"gitHead": "d1fe2d05f4c468640facf40565e30f7110757f2d" | ||
"gitHead": "cbd5a26e57758e3f748174ff84aa570e8780e85d" | ||
} |
@@ -5,3 +5,6 @@ import { declare } from "@babel/helper-plugin-utils"; | ||
export default declare( | ||
(api, { jsxPragma, allExtensions = false, isTSX = false }) => { | ||
( | ||
api, | ||
{ jsxPragma, allExtensions = false, isTSX = false, allowNamespaces }, | ||
) => { | ||
api.assertVersion(7); | ||
@@ -24,3 +27,5 @@ | ||
{ | ||
plugins: [[transformTypeScript, { jsxPragma, isTSX }]], | ||
plugins: [ | ||
[transformTypeScript, { jsxPragma, isTSX, allowNamespaces }], | ||
], | ||
}, | ||
@@ -33,3 +38,3 @@ ] | ||
test: /\.ts$/, | ||
plugins: [[transformTypeScript, { jsxPragma }]], | ||
plugins: [[transformTypeScript, { jsxPragma, allowNamespaces }]], | ||
}, | ||
@@ -40,3 +45,8 @@ { | ||
test: /\.tsx$/, | ||
plugins: [[transformTypeScript, { jsxPragma, isTSX: true }]], | ||
plugins: [ | ||
[ | ||
transformTypeScript, | ||
{ jsxPragma, isTSX: true, allowNamespaces }, | ||
], | ||
], | ||
}, | ||
@@ -43,0 +53,0 @@ ], |
{ | ||
"presets": [["react", {}, "before"], "typescript", ["react", {}, "after"]], | ||
"throws": "Unexpected token, expected \"</>\" (1:6)" | ||
"throws": "Unexpected token, expected \"</>/<=/>=\" (1:6)" | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6550
164
0