rollup-plugin-rebase icon indicating copy to clipboard operation
rollup-plugin-rebase copied to clipboard

Support rollup plugin multi input

Open txantslusam opened this issue 3 years ago • 0 comments

Hi! I am in process of building library components. I decided to use rollup and a set of plugins including rollup-plugin-rebase to manage assets and rollup-plugin-multi-input to parse code. It appears that these two plugins conflicting between each other and in result, assets paths points to non existing directories.

eg.

import asset from '../../components/example/assets/asset.jpg'

instead of

import asset from '../../assets/asset.jpg'

For every entry, root was changing and in result it ends with folder of last file to parse.

With this change, plugin can detect, if we are using rollup-plugin-multi-input. Then root is setting only once at start.

txantslusam avatar May 13 '22 08:05 txantslusam