This repository was archived by the owner on Aug 4, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 1
1
# rollup-plugin-alias
2
- Provide an alias for modules in Rollup
2
+ Define aliases when bundling packages with Rollup.
3
+
4
+ [ ![ Build Status] ( https://travis-ci.org/frostney/rollup-plugin-alias.svg?branch=master )] ( https://travis-ci.org/frostney/rollup-plugin-alias ) [ ![ Dependency Status] ( https://david-dm.org/frostney/rollup-plugin-alias.svg )] ( https://david-dm.org/frostney/rollup-plugin-alias ) [ ![ devDependency Status] ( https://david-dm.org/frostney/rollup-plugin-alias/dev-status.svg )] ( https://david-dm.org/frostney/rollup-plugin-alias#info=devDependencies ) [ ![ Coverage Status] ( https://coveralls.io/repos/github/frostney/rollup-plugin-alias/badge.svg?branch=master )] ( https://coveralls.io/github/frostney/rollup-plugin-alias?branch=master )
5
+
6
+ ## Installation
7
+ ```
8
+ npm install rollup-plugin-alias
9
+ ```
10
+
11
+ ## Usage
12
+ ```
13
+ import { rollup } from 'rollup';
14
+ import alias from 'rollup-plugin-alias';
15
+
16
+ rollup({
17
+ entry: './src/index.js',
18
+ plugins: [alias({
19
+ somelibrary: './mylocallibrary'
20
+ })],
21
+ });
22
+ ```
23
+
24
+ ## License
25
+ MIT, see ` LICENSE ` for more information
You can’t perform that action at this time.
0 commit comments