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. Add optional no hash option. #42

Closed
wants to merge 2 commits into 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.

Second thing is that I added option to optionally disable hashing of filenames, so they can remain the same (useful for libraries)

@bdwain bdwain mentioned this pull request Apr 26, 2022
@txantslusam
Copy link
Author

Closed in favour of #46 and #47

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