Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-typescript

Package Overview
Dependencies
Maintainers
1
Versions
600
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-typescript - npm Package Compare versions

Comparing version 1.0.0-alpha13-alpha.537d11c6 to 1.0.0-alpha13-alpha.7d186994

18

gatsby-node.js

@@ -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.537d11c6",
"version": "1.0.0-alpha13-alpha.7d186994",
"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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc