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
refactor(multi-entry): virtualised & entryFileName #520
refactor(multi-entry): virtualised & entryFileName #520
Conversation
BREAKING CHANGES: Outputs a multi-entry file with different default name Refactored multi-entry to use plugin-virtual for resolving/loading the multiple entries into a single entry file. Some tidy-up and adding a new option, entryFileName, to override the default entry filename.
This is an interesting take on the fix. Thanks for opening this. 🎉 We'll have a look at it shortly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, thank you. We'll wait to merge until a few more eyes are on it. But LGTM
...conf | ||
}; | ||
|
||
let prefix = config.exports === false ? AS_IMPORT : AS_EXPORT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems minor, but checking to make sure this isn't hiding a bug: you're always setting config.exports to true immediately before this condition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ...conf
at the end of the config definition will overwrite the default exports: true
, since the documentation describes that you can pass a multi({ exports: false })
object into the plugin itself. Therefore, given that is a means by which you can configure this plugin, I have to initialise the prefix with the potential of being either an import/export type before I process the input. The style is the same as Object.assign({ exports: true }, conf)
That is how I understand the code when I came to have a bash at it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, of course you are right. Thanks!
@shellscape @Bluefinger When you want to release this? As I checked the npm package version for multi-entry module is still
|
@cyclops24 please kindly refrain from asking about releases. we handle those as we're able to. rest assured it'll go out. |
@Bluefinger @shellscape I checked this PR code in my local and it seems it's not working well with
Is it normal? IF not maybe we need to create another issue for this and fix these issues. |
@Bluefinger @shellscape Did you read my message? I don't know why you merge and release this PR with a new bug on You want to fix windows issue but you break plugin in |
@cyclops24 Make an issue then? What is the expected behaviour that you wish to see with How a fix is applied also depends on what people expect in terms of behaviour and their own use cases. It might be that your case breaks anothers if we apply a fix there as well. Probably a good idea to discuss this in an appropriate issue as such. |
@Bluefinger The issue is that this PR doesn't solve main problem and also cause another new bug:
I informed you guys 2 days ago but I see rollup released this buggy version today. I told you everything here. No more time to spend on a simple For others, if anyone has an issue in Windows OS:
To this:
Everything works without any problem also in @Bluefinger I also suggest preparing new PR to fix the two above issues. |
@cyclops24 The issue with This is kinda why you should open an issue, so that an actual working solution can be narrowed down and proposed. |
@Bluefinger you tell in the PR description this note:
And also @shellscape closed the related issue: #488 that @aminya, me, and @frank-dspeed reported and marked this as a fixed issue and close the issue. I really appreciate your contribution it's not a discussion between me and you. It's a lake of QA and attention to community messages that a simple @Bluefinger Also we don't need to open a new issue. The issue still exists there. We just need to reopen that: |
Please open a new issue to track bugs related to this PR.
I take exception to this language. We spend A LOT of FREE time trying to support the community. And forgive us for not catching every issue on every OS. 🙄 Please refrain from commentary like this in the future. |
Rollup Plugin Name:
multi-entry
This PR contains:
Are tests included?
Breaking Changes?
If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.
List any relevant issue numbers:
Prompted by #488
Fixes Windows related error and exposes new option for overriding defaults.
Idea for this PR from #506
Description
BREAKING CHANGES: Outputs a multi-entry file with different default name
Refactored multi-entry to use plugin-virtual for resolving/loading the multiple entries into a single entry file. Some tidy-up and adding a new option,
entryFileName
, to override the default entry filename.First PR for rollup, feel free to provide feedback and further notes for work.