rollup-plugin-resolve-alias
v0.2.1
Published
Create aliases for Rollup to import module easily.
Downloads
46
Maintainers
Readme
rollup-plugin-resolve-alias
Create aliases for Rollup to import module easily.
Installation
npm i -D rollup-plugin-resolve-alias
# or
yarn add -D rollup-plugin-resolve-alias
Usage
rollup.config.js
:
import resolveAlias from 'rollup-plugin-resolve-alias';
export default {
input: 'src/main.js',
output: {
file: 'bundle.js',
format: 'cjs'
},
plugins: [
resolveAlias({
aliases: {
// Your alias here
}
})
]
};