Skip to content

Commit

Permalink
Update documentation to include a with-typescript example
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed Aug 9, 2018
1 parent 3ff72bd commit ac4cff7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ yarn add next-plugin-transpile-modules

## Usage

Classic:

```js
// next.config.js
const withTM = require('next-plugin-transpile-modules');
Expand All @@ -27,3 +29,16 @@ module.exports = withTM({
transpileModules: ['somemodule', 'oranother']
});
```

With `with-typescript`:

```js
const withTypescript = require('@zeit/next-typescript');
const withTM = require('./plugins/with-transpiled-modules');

module.exports = withTypescript(
withTM({
transpileModules: ['somemodule', 'oranother']
})
);
```

0 comments on commit ac4cff7

Please sign in to comment.