next-with-typescript
v1.0.0
Published
next js in typescript without babel
Downloads
36
Readme
Next.js + Typescript
Use Typescript with Next.js
This plugin implements ts-loader with Next.js.
Installation
yarn add ts-loader next-with-typescriptUsage
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
}
})