gatsby-plugin-typescript
Advanced tools
Comparing version 1.0.0-alpha13-alpha.ec011f40 to 1.0.0-alpha14
@@ -13,3 +13,3 @@ "use strict"; | ||
var _require = require("typescript"), | ||
var _require = require(`typescript`), | ||
transpileModule = _require.transpileModule; | ||
@@ -19,9 +19,9 @@ | ||
var compilerDefaults = { | ||
target: "esnext", | ||
target: `esnext`, | ||
experimentalDecorators: true, | ||
jsx: "react" | ||
jsx: `react` | ||
}; | ||
module.exports.resolvableExtensions = function () { | ||
return [".ts", ".tsx"]; | ||
return [`.ts`, `.tsx`]; | ||
}; | ||
@@ -35,3 +35,3 @@ | ||
var copts = (0, _assign2.default)({}, compilerDefaults, compilerOptions, { | ||
module: "commonjs" | ||
module: `commonjs` | ||
}); | ||
@@ -41,5 +41,5 @@ // React-land is rather undertyped; nontrivial TS projects will most likely | ||
var opts = { compilerOptions: copts, transpileOnly: true }; | ||
config.loader("typescript", { | ||
config.loader(`typescript`, { | ||
test, | ||
loader: "ts-loader?" + (0, _stringify2.default)(opts) | ||
loader: `ts-loader?` + (0, _stringify2.default)(opts) | ||
}); | ||
@@ -55,4 +55,4 @@ }; | ||
var copts = (0, _assign2.default)({}, compilerDefaults, compilerOptions, { | ||
target: "esnext", | ||
module: "es6" | ||
target: `esnext`, | ||
module: `es6` | ||
}); | ||
@@ -59,0 +59,0 @@ // return the transpiled source if it's TypeScript, otherwise null |
{ | ||
"name": "gatsby-plugin-typescript", | ||
"version": "1.0.0-alpha13-alpha.ec011f40", | ||
"version": "1.0.0-alpha14", | ||
"description": "Adds TypeScript support for Gatsby layouts and pages.", | ||
@@ -14,3 +14,3 @@ "author": "Kyle Mathews <mathews.kyle@gmail.com>", | ||
"devDependencies": { | ||
"babel-cli": "^6.24.0" | ||
"babel-cli": "^6.24.1" | ||
}, | ||
@@ -17,0 +17,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3659
2