Skip to content

Commit

Permalink
fix(plugin name): now use the package.json name, for better consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredo salzillo committed Jun 28, 2019
1 parent f24ecfd commit 35bbc4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import path from 'path';
import fromPairs from 'lodash/fromPairs';
import isString from 'lodash/isString';
import partition from 'lodash/partition';

const pluginName = 'rollup-plugin-multi-input';
import { name } from '../package.json';

/**
* default multi-input Options
Expand All @@ -30,7 +29,7 @@ export default ({
glob: globOptions,
relative = defaultOptions.relative,
} = defaultOptions) => ({
name: pluginName,
name,
options(conf) {
// flat to enable input to be a string or an array
// separate globs inputs string from others to enable input to be a mixed array too
Expand Down

0 comments on commit 35bbc4f

Please sign in to comment.