Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support rollup plugin multi input #47

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

txantslusam
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant