next-with-typescript

1.0.0 • Public • Published

Next.js + Typescript

Use Typescript with Next.js

This plugin implements ts-loader with Next.js.

Installation

yarn add ts-loader next-with-typescript

Usage

Create a next.config.js in your project

// next.config.js
const withTypescript = require('next-with-typescript')
module.exports = withTypescript()

Optionally you can add your custom Next.js configuration as parameter

// next.config.js
const withTypescript = require('@zeit/next-typescript')
module.exports = withTypescript({
  webpack(config, options) {
    return config
  }
})

/next-with-typescript/

    Package Sidebar

    Install

    npm i next-with-typescript

    Weekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.06 kB

    Total Files

    3

    Last publish

    Collaborators

    • echoulen