From 4ecf8a3c220e40b90eb2455677271738e79f6ca8 Mon Sep 17 00:00:00 2001 From: seetdev <35116035+seetdev@users.noreply.github.com> Date: Thu, 23 Jan 2020 17:58:30 -0500 Subject: [PATCH] docs(alias): Fix reference to plugin-node-resolve (#175) * 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 --- packages/alias/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/alias/README.md b/packages/alias/README.md index a2848a6af..bbcd0c458 100644 --- a/packages/alias/README.md +++ b/packages/alias/README.md @@ -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 @@ -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']