@zeit/next-typescript
Advanced tools
+6
-3
@@ -29,5 +29,8 @@ module.exports = (nextConfig = {}) => { | ||
| config.module.rules.push({ | ||
| test: /\.(ts|tsx)(\?[^?]*)?$/, | ||
| test: /\.(ts|tsx)$/, | ||
| loader: 'hot-self-accept-loader', | ||
| include: [path.join(dir, 'pages')] | ||
| include: [path.join(dir, 'pages')], | ||
| options: { | ||
| extensions: /\.(ts|tsx)$/ | ||
| } | ||
| }) | ||
@@ -37,3 +40,3 @@ } | ||
| config.module.rules.push({ | ||
| test: /\.+(ts|tsx)$/, | ||
| test: /\.(ts|tsx)$/, | ||
| include: [dir], | ||
@@ -40,0 +43,0 @@ exclude: /node_modules/, |
+1
-1
| { | ||
| "name": "@zeit/next-typescript", | ||
| "version": "0.0.11", | ||
| "version": "0.1.0", | ||
| "main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
+1
-5
@@ -48,8 +48,4 @@ # Next.js + Typescript | ||
| "baseUrl": ".", | ||
| "typeRoots": [ | ||
| "./node_modules/@types" | ||
| ], | ||
| "lib": [ | ||
| "dom", | ||
| "es2015", | ||
| "es2016" | ||
@@ -83,3 +79,3 @@ ] | ||
| const withTypescript = require("@zeit/next-typescript") | ||
| var ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); | ||
| const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); | ||
@@ -86,0 +82,0 @@ module.exports = withTypescript({ |
55
5.77%4046
-0.25%89
-4.3%