1.0.0 • Published 3 years ago

rollup-plugin-aliasexternal v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Rollup-plugin-aliasexternal

this module was inspired by https://github.com/rollup/rollup-plugin-alias

the main focus this module is to resolve alias inside node_module when bundling package with Rollup

Usage

npm i -D rollup-plugin-aliasexternal
// rollup.config.js
import { aliasExternal } from 'rollup-plugin-aliasexternal';

export default {
  input: './src/index.js',
  plugins: [
    aliasExternal(
      'module_name'
      entries:[
        {find:'something', replacement: '../../../something'}
      ]
    )
  ],
};