Skip to content

Commit

Permalink
docs(alias): Fix reference to plugin-node-resolve (#175)
Browse files Browse the repository at this point in the history
* docs(alias): Fix reference to plugin-node-resolve

* docs(alias): Fix reference to plugin-node-resolve

Fix code sample to use the new package @rollup/plugin-node-resolve instead of rollup-plugin-node-resolve
  • Loading branch information
bochap authored and shellscape committed Jan 23, 2020
1 parent 875048a commit 4ecf8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/alias/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ This would replace the file extension for all imports ending with `.js` to `.ali

## Resolving algorithm

This plugin uses resolver plugins specified for Rollup and eventually Rollup default algorithm. If you rely on Node specific features, you probably want [rollup-plugin-node-resolve](https://www.npmjs.com/package/rollup-plugin-node-resolve) in your setup.
This plugin uses resolver plugins specified for Rollup and eventually Rollup default algorithm. If you rely on Node specific features, you probably want [@rollup/plugin-node-resolve](https://www.npmjs.com/package/@rollup/plugin-node-resolve) in your setup.

## Custom Resolvers

Expand All @@ -140,7 +140,7 @@ Example:
```javascript
// rollup.config.js
import alias from '@rollup/plugin-alias';
import resolve from 'rollup-plugin-node-resolve';
import resolve from '@rollup/plugin-node-resolve';

const customResolver = resolve({
extensions: ['.mjs', '.js', '.jsx', '.json', '.sass', '.scss']
Expand Down

0 comments on commit 4ecf8a3

Please sign in to comment.