rollup-plugin-resolve-aliases
v0.3.0
Published
Resolves aliases.
Downloads
142
Maintainers
Keywords
Readme
rollup-plugin-resolve-aliases
Resolves aliases.
Installation
npm install --save-dev rollup-plugin-resolve-aliases
Usage
import resolveAliases from 'rollup-plugin-resolve-aliases'
export default {
entry: 'src/index.js',
dest: 'dist/my-lib.js',
plugins: [
resolveAliases({
aliases: {
'module-foo': 'node_modules/module-foo/main.js',
'module-bar': 'node_modules/baz/node_modules/quux/src/'
},
mainFields: ['browser', 'module', 'main'] // Default: ['module', 'main']
})
]
}
Author
License
MIT